Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kill(0, $pid) should not die [rt.cpan.org #86238] #100

Closed
toddr opened this issue Jan 16, 2020 · 1 comment
Closed

kill(0, $pid) should not die [rt.cpan.org #86238] #100

toddr opened this issue Jan 16, 2020 · 1 comment

Comments

@toddr
Copy link
Collaborator

toddr commented Jan 16, 2020

Migrated from rt.cpan.org#86238 (status was 'open')

Requestors:

From [email protected] on 2013-06-18 14:54:44
:

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.

From [email protected] on 2014-10-07 15:12:11
:

On Tue Jun 18 10:54:44 2013, JSIRACUSA wrote:
> 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



From [email protected] on 2019-06-05 16:17:51
:

On Tue Oct 07 11:12:11 2014, [email protected] wrote:

> 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?


From [email protected] on 2019-06-05 16:22:49
:

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$ 



@toddr
Copy link
Collaborator Author

toddr commented Jan 16, 2020

This is a duplicate to #47 I believe.

@toddr toddr closed this as completed Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant