From 5c9e031adb4e1833337679d37f75a3d23fd91ff1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 1 Jun 2006 06:11:31 +0000 Subject: r15989: try to make timelimit.c more portable Patch from Bjoern Jacke (Thanks!) metze (This used to be commit b9d1440f46f443851607300e31b123d6afa81c06) --- source3/script/tests/timelimit.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'source3/script/tests/timelimit.c') 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 } -- cgit