in reply to Re: Monitoring child processes
in thread Monitoring child processes
Another interesting signal to send is signal number zero. This doesn't actually affect a child process, but instead checks whether it's alive or has changed its UID.This seemed to be an attractive and easy solution - that's why I wanted to try it out.unless (kill 0 => $kid_pid) { warn "something wicked happened to $kid_pid"; }
|
|---|