develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [perl #24353] kill() --- POD needs a hand

Thread Previous
From:
Rafael Garcia-Suarez
Date:
November 2, 2003 07:17
Subject:
Re: [perl #24353] kill() --- POD needs a hand
Message ID:
20031102162305.596fc23d.rgarciasuarez@free.fr
Michael.Jacob@SCHERING.DE (via RT) wrote:

> $ perl -e 'print kill 0, undef, undef'
> 2
> 
> Ok, this is fairly clear to me, but it may puzzle many
> people. (And has, here :-))
> 
> I'd think the semantics of a PID=0 should be documented in
> perlfunc. It may even be wise to let kill() ignore undef
> parameters...
> 
> 
> Also I found the following in the PODs:
> 
> perlfunc/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.)
> 
> perlipc:
> Sending a signal to a negative process ID means that you send the signal
> to the entire Unix process-group.
> 
> This should be cleared up, I'd say...

Anyone is candidate to provide a patch ? It would be welcome...

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About