diff options
Diffstat (limited to 'source3/script/tests')
-rw-r--r-- | source3/script/tests/timelimit.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/script/tests/timelimit.c b/source3/script/tests/timelimit.c index 5b8281cb0d..32e58f5249 100644 --- a/source3/script/tests/timelimit.c +++ b/source3/script/tests/timelimit.c @@ -53,17 +53,10 @@ static void sig_usr1(int sig) static void new_process_group(void) { -#ifdef BSD_SETPGRP - if (setpgrp(0,0) == -1) { - perror("setpgrp"); + if (setpgid(0,0) == -1) { + perror("setpgid"); exit(1); } -#else - if (setpgrp() == -1) { - perror("setpgrp"); - exit(1); - } -#endif } |