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
In reply to Re: Deamon: Need Child to exit if parent dies
by MidLifeXis
in thread Deamon: Need Child to exit if parent dies
by aennen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |