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