You can $SIG{__DIE__} = sub { kill 15, $kidpid }; or something like that, but don't think you'll have time to do anything in your parent process if it gets hit with a -9 (assuming it's a SIGKILL on your platform). Traditionally you can't install a handler for that one.
UPDATE: I just noticed that you specifically don't want to kill from the parent — which makes sense if you're anticipiating the parent dying from a SIGKILL. The only other thing I can think of is polling. Either store a $rentid = $$ before your fork and check to see if the rent is still there with say -d "/proc/$rentid" (not very accurate in some cases) or possibly by using a lockfile (see flock) that the parent keeps locked and the child non-blockingly checks for locks.
-Paul
In reply to Re: Child process dies
by jettero
in thread Child process dies
by dejans
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |