• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3# Check signal mask transparency.
4# Starting with commit v4.17-5-gf83b49b strace is expected
5# to forward the signal mask 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 block in 0 1; do
14		set_cmd="../set_sigblock $block $sig"
15		check_cmd="../check_sigblock $block $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