Skip Menu |

This queue is for tickets about the App-Daemon CPAN distribution.

Report information
The Basics
Id: 44462
Status: resolved
Priority: 0/
Queue: App-Daemon

People
Owner: Nobody in particular
Requestors: felix.ostmann [...] thewar.de
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.06
Fixed in: (no value)



Subject: $SIG{__DIE__} for unlink the $pidfile with childs
i have a daemon with childs. currently i overwrite the $SIG{__DIE__} = 'DEFAULT' for every child, but i think this should do the App::Daemon somethin like that perhaps: my $master_pid = $$; $SIG{__DIE__} = sub { # Make sure it's not an eval{} triggering the handler. if(defined $^S && $^S==0 && $master_pid == $$) { unlink $pidfile or warn "Cannot remove $pidfile"; } };
Finally, I got around fixing this bug: https://github.com/mschilli/app- daemon/commit/25f70e57636e740342f065499e0d7871f4d8c199 Will go out with 0.16, should be on CPAN soon. Let me know if it works! -- Mike