14 lines
159 B
Bash
Executable file
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
|