Skip Menu |

This queue is for tickets about the autodie CPAN distribution.

Report information
The Basics
Id: 86238
Status: resolved
Priority: 0/
Queue: autodie

People
Owner: niels [...] thykier.net
Requestors: siracusa [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.19
Fixed in: (no value)



Subject: kill(0, $pid) should not die
kill(0, $pid) is often used to check if a process exists and can be signaled. The current version of autodie (2.19) dies if $pid doesn't exist or can't be signaled by the current user. When the signal number is 0, autodie should not die.
On Tue Jun 18 10:54:44 2013, JSIRACUSA wrote: Show quoted text
> kill(0, $pid) is often used to check if a process exists and can be > signaled. The current version of autodie (2.19) dies if $pid doesn't > exist or can't be signaled by the current user. When the signal > number is 0, autodie should not die.
For reference: This is (now?) also filed on github as issue #47[1] ~Niels [1] https://github.com/pjf/autodie/issues/47
On Tue Oct 07 11:12:11 2014, niels@thykier.net wrote: Show quoted text
> For reference: This is (now?) also filed on github as issue #47[1]
Still happening nearly 5 years after this announcement. Will the fix be rolled out any time soon?
njh@microcenter:/tmp$ cat autodie #!/usr/bin/env perl use strict; use warnings; use autodie qw(:all); if(kill(0, 10000)) { print "there\n"; } print "done\n"; njh@microcenter:/tmp$ ./autodie Can't kill('0', '10000'): No such process at ./autodie line 7 njh@microcenter:/tmp$
Ticket migrated to github as https://github.com/pjf/autodie/issues/100