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

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

Thread Previous | Thread Next
From:
youshi10
Date:
April 17, 2007 15:27
Subject:
Re: [PATCH] Fix kill(0, $pid) on Windows
Message ID:
Pine.LNX.4.43.0704171527300.32173@hymn04.u.washington.edu
On Tue, 17 Apr 2007, Steve Hay wrote:

> Garrett Cooper wrote:
>>>> Jan Dubois wrote:
>>>>> I broke the kill(0, $pid) behavior on Windows with change 29605
>>>>> (the one implementing killpg()):
>>>>> 
>> 
>> 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'm running on Windows XP. What OS have you seen this problem on?
>
> --

I realized this after the fact, but it shouldn't be signal 0, but something different from that.

Example:

$ perl -e 'kill(15, undef); print "Hello, cruel world!\n"';
Terminated

This occurs on both XP (SP2) and Unix (SUSE 10.3) AFAIK.

-Garrett


Thread Previous | Thread Next


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