blob: cfcc75cbd9b525b335bcd28d540a278e60117ebf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
#
# Check signal mask transparency.
# Starting with commit v4.17-5-gf83b49b strace is expected
# to forward the signal mask to tracees unchanged.
#
# Copyright (c) 2017-2020 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0-or-later
. "${srcdir=.}/init.sh"
run_prog ../list_sigaction_signum > /dev/null
saved_STRACE="$STRACE"
for sig in $(../list_sigaction_signum); do
for block in 0 1; do
set_cmd="../set_sigblock $block $sig"
check_cmd="../check_sigblock $block $sig"
run_prog $set_cmd $check_cmd
STRACE="$set_cmd $saved_STRACE"
for i in '' -I1 -Iwaiting --interruptible=3 --interruptible=never_tstp; do
run_strace $i -enone $check_cmd
done
done
done
|