svn commit: samba r15990 - in trunk/source/script/tests: .

metze at samba.org metze at samba.org
Thu Jun 1 06:11:54 GMT 2006


Author: metze
Date: 2006-06-01 06:11:53 +0000 (Thu, 01 Jun 2006)
New Revision: 15990

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15990

Log:
try to make timelimit.c more portable

Patch from Bjoern Jacke (Thanks!)

metze
Modified:
   trunk/source/script/tests/timelimit.c


Changeset:
Modified: trunk/source/script/tests/timelimit.c
===================================================================
--- trunk/source/script/tests/timelimit.c	2006-06-01 06:11:31 UTC (rev 15989)
+++ trunk/source/script/tests/timelimit.c	2006-06-01 06:11:53 UTC (rev 15990)
@@ -53,17 +53,10 @@
 
 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
 }
 
 



More information about the samba-cvs mailing list