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

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

Thread Previous | Thread Next
From:
Garrett Cooper
Date:
April 18, 2007 07:45
Subject:
Re: [PATCH] Fix kill(0, $pid) on Windows
Message ID:
46262F21.7070408@u.washington.edu
Steve Hay wrote:
> Jan Dubois wrote:
>> Therefore `kill(15, undef)` should send signal 15 to all processes in
>> the current process group, including the process issuing the kill()
>> call itself.
> 
> Is kill(15, $pid) supposed to work on Windows? I find that it has no 
> effect (at least when $pid is another perl.exe process).
> 
> Also, kill(9, $pid) kills another perl.exe process OK, but
> 
> perl -le "kill 9, undef; print 'Hi'"
> 
> doesn't kill the current perl process: the program prints 'Hi' and exits 
> normally. Same with kill(9, 0) in place of kill(9, undef).
> 
> I tried all this using 5.8.7, 5.8.8 and current bleadperl.

I think the "problem" is only available in Cygwin, because of the 
system's POSIX ties.

Don't think that this behavior is true for ActivePerl, or Win32 native 
binaries..

-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