Daemon-Control
Daemon-Control copied to clipboard
pid check works now for all users
Running "status" used to show the wrong result if the daemon was started for a different user. According to perlipc.pod it's best to check for $!{EPERM} after a failed kill 0 => ...
The pid_running() function was also simplified to call kill 0 => ... only once, the 2nd call was actually redundant.
This would fix https://rt.cpan.org/Ticket/Display.html?id=87491