File smokeping_reload.patch of Package smokeping

Timo Benk <benk@b1-systems.de> Fri Jul 25 09:37:46 CEST 2014
Patch to fix --reload function
--- ./lib/Smokeping.pm.orig	2014-07-22 18:43:04.793983260 +0200
+++ ./lib/Smokeping.pm	2014-07-22 18:45:36.360154314 +0200
@@ -4305,10 +4305,11 @@ RESTART:
                         $i++;
                         my %termsent;
                         for (keys %probepids) {
+                                next if not defined($probepids{$_}); # may be already removed by SIGCHLD handler
                                 my $step = $oldprobes->{$probepids{$_}}->step;
                                 if ($i > $step) {
                                         do_log("Child process $_ took over its step value to terminate, killing it with SIGTERM");
-                                        if (kill SIGTERM, $_ == 0 and exists $probepids{$_}) {
+                                        if (kill(SIGTERM, $_) == 0 and exists $probepids{$_}) {
                                                 do_log("Fatal: Child process $_ has disappeared? This shouldn't happen. Giving up.");
                                                 exit 1;
                                         } else {