]> git.ipfire.org Git - people/stevee/guardian.git/commitdiff
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 d3f7de0ea0c62d3965ce2b7266a57828fb2be1f6..f3c287b593305caf7769618a3439d33c5131cbf8 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');
        }
 }