1#!/bin/sh
2
3# Check signal disposition transparency.
4# Starting with commit v4.17-8-ge97a66f strace is expected
5# to forward the signal disposition to tracees unchanged.
6
7. "${srcdir=.}/init.sh"
8
9run_prog ../list_sigaction_signum > /dev/null
10saved_STRACE="$STRACE"
11
12for sig in $(../list_sigaction_signum); do
13	for ign in 0 1; do
14		set_cmd="../set_sigign $ign $sig"
15		check_cmd="../check_sigign $ign $sig"
16		run_prog $set_cmd $check_cmd
17		STRACE="$set_cmd $saved_STRACE"
18		for i in '' -I1 -I2 -I3 -I4; do
19			run_strace $i -enone $check_cmd
20		done
21	done
22done
23