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

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

Thread Next
Jan Dubois
April 16, 2007 17:36
[PATCH] Fix kill(0, $pid) on Windows
Message ID:
I broke the kill(0, $pid) behavior on Windows with change 29605
(the one implementing killpg()):

The problem is that OpenProcess() returns a HANDLE, but on error it
returns NULL and not the usual INVALID_HANDLE_VALUE. I assume the reason
for this is that at the kernel level, the INVALID_HANDLE_VALUE bit
pattern is the same as the pseudo handle for the current process.

The attached patch restores kill(0, $pid) behavior.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About