wait4.0 revision 302408
1251314Sed# $FreeBSD: stable/11/bin/sh/tests/builtins/wait4.0 247206 2013-02-23 22:50:57Z jilles $ 2251314Sed 3251314SedT=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXX` 4251314Sedtrap 'rm -rf $T' 0 5251314Sedcd $T || exit 3 6251314Sedmkfifo fifo1 7251314Sedtrapped= 8251314Sedtrap trapped=1 QUIT 9{ kill -QUIT $$; sleep 1; exit 4; } >fifo1 & 10wait $! <fifo1 11r=$? 12[ "$r" -gt 128 ] && [ -n "$trapped" ] 13