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