in reply to Deamon: Need Child to exit if parent dies
SIGKILL (9) cannot be trapped by a process - the OS just stops scheduling the process. You will need to have the child monitor the parent process to see if it still exists (perhaps with kill 0, ... (see kill), and take action based on that.
See also documentation for $PID, specifically the information about getppid.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deamon: Need Child to exit if parent dies
by bot403 (Beadle) on Jan 05, 2010 at 20:33 UTC |