This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #112990] Simplify kill implementation and docs
authorDarin McBride <dmcbride@cpan.org>
Tue, 26 Jun 2012 16:24:56 +0000 (09:24 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 26 Jun 2012 16:24:56 +0000 (09:24 -0700)
commitc2fd40cb025bad682ee44b1ccb8ea501ed51924d
tree7597055827f6bf825284110eeba2330a9fd59da7
parent0f9db002b9f34078759729fa70bd1d6fb2350fb8
[perl #112990] Simplify kill implementation and docs

Clean up kill implementation and clear up the docs in perlfunc to be less
ambiguous and encompass more of its behaviour.

a)   kill -INT => $pid;

was surprisingly doing a "kill 0, $pid" instead of being the same as "kill -2,
$pid" (killing the process group for $pid with an interrupt).  Now negative
signal names will be allowed and be the same as if the name was replaced with
the signal number it represents.

b) remove all calls to killpg() as killpg is defined in terms of kill anyway.

c) Clarify the use of signal names vs numbers in perlfunc so that using names
is not so well hidden, as well as explaining the usage of negative signal
numbers as well as negative process IDs.
doio.c
pod/perlfunc.pod