xref: /freebsd/bin/sh/tests/execution/bg12.0 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1
2T=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXXXX`
3trap 'rm -rf $T' 0
4cd $T || exit 3
5mkfifo fifo1
6{ trap - INT; : >fifo1; sleep 5 & wait; exit 4; } &
7: <fifo1
8kill -INT "$!"
9wait "$!"
10r=$?
11[ "$r" -gt 128 ] && [ "$(kill -l "$r")" = INT ]
12