From 4d19939e53a4dfca420b683dd2bb8157d7d24fdd Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 25 Nov 2015 12:22:49 +0100 Subject: [PATCH] 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 --- guardian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } } -- 2.39.2