March 2002
Beginner
504 pages
10h 47m
English
| 1: | The following is the main body of the “live” script presented earlier in this chapter. Change the script such that SIGQUIT causes it to exit after the wait command returns.
# main()
trap CleanUp 2 3 15
trap Init 1
PROG=$1
Init
while : ;
do
wait $!
$PROG &
done
|
| 2: | Add a signal handler to the timer script to handle SIGINT. |
Read now
Unlock full access