shells: fix exitcode_trapN tests to avoid races
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
1555895b4a
commit
9aa751b08a
@ -3,7 +3,6 @@
|
||||
$THIS_SH -c '
|
||||
trap "false;exit" term
|
||||
kill $$ &
|
||||
(exit 42)
|
||||
wait
|
||||
(sleep 1; exit 42)
|
||||
'
|
||||
echo 42:$?
|
||||
|
@ -5,7 +5,6 @@ $THIS_SH -c '
|
||||
trap "echo INT" int
|
||||
trap "kill -int $$;exit" term
|
||||
kill $$ &
|
||||
(exit 42)
|
||||
wait
|
||||
(sleep 1; exit 42)
|
||||
'
|
||||
echo 42:$?
|
||||
|
@ -3,7 +3,6 @@
|
||||
$THIS_SH -c '
|
||||
trap "false;exit" term
|
||||
kill $$ &
|
||||
(exit 42)
|
||||
wait
|
||||
(sleep 1; exit 42)
|
||||
'
|
||||
echo 42:$?
|
||||
|
@ -5,7 +5,6 @@ $THIS_SH -c '
|
||||
trap "echo INT" int
|
||||
trap "kill -int $$;exit" term
|
||||
kill $$ &
|
||||
(exit 42)
|
||||
wait
|
||||
(sleep 1; exit 42)
|
||||
'
|
||||
echo 42:$?
|
||||
|
Loading…
Reference in New Issue
Block a user