diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-13 06:34:53 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-13 06:34:53 +0000 |
commit | b350dd2f881c6f46f8125355cf7111e4c97d1870 (patch) | |
tree | 6bb50e35908a60ca2018f55cba5e3efd2fdf1b11 /pod/perlfunc.pod | |
parent | c35dd67d21bc3e32533d94409f1aabc5d0c23f0a (diff) | |
download | perl-b350dd2f881c6f46f8125355cf7111e4c97d1870.tar.gz |
various pod tweaks (from M.J.T. Guy <mjtg@cus.cam.ac.uk>)
p4raw-id: //depot/perl@4359
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 910510804c..d8c82bbeda 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2118,17 +2118,21 @@ as trying has no effect). See also C<each>, C<values> and C<sort>. -=item kill LIST +=item kill SIGNAL, LIST -Sends a signal to a list of processes. The first element of -the list must be the signal to send. Returns the number of +Sends a signal to a list of processes. Returns the number of processes successfully signaled (which is not necessarily the same as the number actually killed). $cnt = kill 1, $child1, $child2; kill 9, @goners; -Unlike in the shell, in Perl if the I<SIGNAL> is negative, it kills +If SIGNAL is zero, no signal is sent to the process. This is a +useful way to check that the process is alive and hasn't changed +its UID. See L<perlport> for notes on the portability of this +construct. + +Unlike in the shell, if SIGNAL is negative, it kills process groups instead of processes. (On System V, a negative I<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 |