go ahead... be a heretic | |
PerlMonks |
Re: Kill negated PIDs v negated SIGsby psini (Deacon) |
on Aug 27, 2010 at 19:15 UTC ( [id://857754]=note: print w/replies, xml ) | Need Help?? |
From perldoc -f kill: Unlike in the shell, if SIGNAL is negative, it kills process groups instead of processes. (On System V, a negative PROCESS number will also kill process groups, but that's not portable.) That means you usually want to use positive not negative signals. You may also use a signal name in quotes. So the wrong way is right on *nix. Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In Section
Seekers of Perl Wisdom
|
|