Files
bash/tests/misc/chld-trap.sh
T

15 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