No need to set return value with timeouts
authorJagger <robert@swiecki.net>
Thu, 5 May 2016 03:39:57 +0000 (05:39 +0200)
committerJagger <robert@swiecki.net>
Thu, 5 May 2016 03:39:57 +0000 (05:39 +0200)
subproc.c

index 3be7404ef2d9415a2287bc7261081b33e2538426..036d984ddeebee2f01cbeb557d4863a8c46cd15e 100644 (file)
--- a/subproc.c
+++ b/subproc.c
@@ -198,9 +198,6 @@ int subprocReap(struct nsjconf_t *nsjconf)
                        PLOG_D("Sent SIGCONT to PID: %d", pid);
                        kill(pid, SIGKILL);
                        PLOG_D("Sent SIGKILL to PID: %d", pid);
-                       if (rv == 0) {
-                               rv = -1;
-                       }
                }
        }
        return rv;