Skip Menu |

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

Report information
The Basics
Id: 83294
Status: resolved
Priority: 0/
Queue: Daemon-Generic

Owner: Nobody in particular
Requestors: clintonmead [...]

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

Subject: Feature Request: Allow option for "stop" to kill process group, not just process.
Date: Wed, 13 Feb 2013 12:01:25 +1100
To: bug-Daemon-Generic [...]
From: Clinton Mead <clintonmead [...]>
Download (untitled) / with headers
text/plain 529b
In the case where "run" spawns a child process, that process will hang around when the child is killed. One could get signal handlers to catch this and kill the children, but if for whatever reason these signal handlers do not activate in time, Daemon::Generic will send the 'KILL' signal, which can't be caught. This will leave the children behind. This could be implemented by a function, say "sub gd_kill_group { return 0; }" which can be overridden to return true, and in that case "gd_kill" actually kills -$pid, not $pid.
Add gd_kill_groups() to signal that process groups should be signaled.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to