xref: /freebsd/bin/sh/tests/execution/bg12.0 (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
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