From f3af36f85e37e7ee0a5f7bbaf285d5f91b053206 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 16 Jul 2011 20:13:24 +0000 Subject: checkneg --- contrib/timeout_watchdog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') 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[]) { /* int setpgrp(pid_t pid, pid_t pgid); is not working on this machine */ //setpgrp (0, pid_t gpid); - setpgid (0, gpid); + if (-1 !- gpid) + setpgid (0, gpid); execvp (argv[2], &argv[2]); exit (1); } -- cgit v1.2.3