i-bash/tests/misc/chld-trap.sh
2009-09-12 16:46:49 +00:00

14 lines
159 B
Bash
Executable file

#! /bin/sh
#
# show that setting a trap on SIGCHLD is not disastrous.
#
trap 'echo caught a child death' SIGCHLD
sleep 5 &
sleep 5 &
sleep 5 &
wait
exit 0