use warnings;
+# Disable warnings of unjoinded threads when stopping guardian.
+no warnings 'threads';
+
# Define version.
my $version ="2.0";
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');
}
}