Just send "KILL" signal to the worker threads.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 25 Nov 2015 11:22:49 +0000 (12:22 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 25 Nov 2015 11:22:49 +0000 (12:22 +0100)
Only send the "KILL" signal to the worker threads, do not detach
the process anymore. Otherwise guardian will fail after a second reload
because a detached thread cannot be detached a second time.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian

index d3f7de0..f3c287b 100644 (file)
--- a/guardian
+++ b/guardian
@@ -295,7 +295,7 @@ sub StopWorkers () {
        foreach my $worker (@running_workers) {
                # Send the worker the "KILL" signal and detach the
                # thread so perl can do an automatically clean-up.
-               $worker->kill('KILL')->detach();
+               $worker->kill('KILL');
        }
 }