summaryrefslogtreecommitdiff
path: root/source3/script/tests
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-01 06:11:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:17 -0500
commit5c9e031adb4e1833337679d37f75a3d23fd91ff1 (patch)
tree583622a8d7e453f3a895b5bac15be14f16b03d58 /source3/script/tests
parent22a543f5bbf20a9104c7f448bb7b24921f17ee3e (diff)
downloadsamba-5c9e031adb4e1833337679d37f75a3d23fd91ff1.tar.gz
samba-5c9e031adb4e1833337679d37f75a3d23fd91ff1.tar.bz2
samba-5c9e031adb4e1833337679d37f75a3d23fd91ff1.zip
r15989: try to make timelimit.c more portable
Patch from Bjoern Jacke (Thanks!) metze (This used to be commit b9d1440f46f443851607300e31b123d6afa81c06)
Diffstat (limited to 'source3/script/tests')
-rw-r--r--source3/script/tests/timelimit.c11
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
}