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