Return failing exit status on timeout
authorJT Olds <hello@jtolds.com>
Tue, 7 Jul 2015 20:08:54 +0000 (14:08 -0600)
committerJT Olds <hello@jtolds.com>
Tue, 7 Jul 2015 21:41:58 +0000 (15:41 -0600)
subproc.c

index ca5d1868b3590eaf521c9d7bbf77816eab88104a..e9df4698301078600dffa6b4937e37696027a70a 100644 (file)
--- a/subproc.c
+++ b/subproc.c
@@ -182,6 +182,9 @@ 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;