develooper Front page | perl.perl5.porters | Postings from April 2007

RE: [PATCH] Fix kill(0, $pid) on Windows

Thread Previous
From:
Jan Dubois
Date:
April 17, 2007 10:57
Subject:
RE: [PATCH] Fix kill(0, $pid) on Windows
Message ID:
028001c78119$bb9fdc50$32df94f0$@com
On Tue, 17 Apr 2007, Steve Hay wrote:
> Garrett Cooper wrote:
>> Speaking of kill... have you guys tried running kill(0, undef) with
>> certain versions of Perl? The earlier versions (5.8.2) apparently
>> killed the parent process instead of erroring out or something.
>>
>> You just reminded me of that point.
>
> I can't reproduce anything like what you describe with 5.6.0,
> 5.6.1, any 5.8.x or bleadperl. I tried running
>
> perl -le "print kill(0, undef); print 'Hi'"
>
> with each of those perls, and they all print 'Hi' okay. Is this one-
> liner sufficient to show up the problem concerned?

I assume Garrett was referring to this bug report:

    http://rt.perl.org/rt3/Public/Bug/Display.html?id=42101

I don't think this behavior is relevant to kill(0, $pid), but only
to those that actually send a signal.  The bug was rejected, as the
current behavior is standard POSIX functionality.

Cheers,
-Jan



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