aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/timeout_watchdog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/timeout_watchdog.c b/contrib/timeout_watchdog.c
index b28e8e833..5fbe7e339 100644
--- a/contrib/timeout_watchdog.c
+++ b/contrib/timeout_watchdog.c
@@ -94,7 +94,8 @@ main (int argc, char *argv[])
94 { 94 {
95 /* int setpgrp(pid_t pid, pid_t pgid); is not working on this machine */ 95 /* int setpgrp(pid_t pid, pid_t pgid); is not working on this machine */
96 //setpgrp (0, pid_t gpid); 96 //setpgrp (0, pid_t gpid);
97 setpgid (0, gpid); 97 if (-1 !- gpid)
98 setpgid (0, gpid);
98 execvp (argv[2], &argv[2]); 99 execvp (argv[2], &argv[2]);
99 exit (1); 100 exit (1);
100 } 101 }