From: Stefan Schantl Date: Wed, 25 Nov 2015 11:22:49 +0000 (+0100) Subject: Just send "KILL" signal to the worker threads. X-Git-Tag: 2.0~64 X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=commitdiff_plain;h=4d19939e53a4dfca420b683dd2bb8157d7d24fdd Just send "KILL" signal to the worker threads. 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 --- diff --git a/guardian b/guardian index d3f7de0..f3c287b 100644 --- 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'); } }