in reply to Re: Killing a system/exec/`` call if it times out
in thread Killing a system/exec/`` call if it times out

Cheers, but yeah, I'm looking for a "kill all children of this PID, and their children too"
  • Comment on Re^2: Killing a system/exec/`` call if it times out

Replies are listed 'Best First'.
Re^3: Killing a system/exec/`` call if it times out
by zentara (Cardinal) on Dec 02, 2011 at 16:44 UTC
    You are looking for Proc::Killfam. Many, if not most times, when you fork to run a program, you end up getting the shell pid of actual program you ran. So if you killfam 9 that toplevel shell, you should get them all.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh