svn commit: samba r15989 - in branches/SAMBA_3_0/source/script/tests: .

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


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

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

Log:
try to make timelimit.c more portable

Patch from Bjoern Jacke (Thanks!)

metze
Modified:
   branches/SAMBA_3_0/source/script/tests/timelimit.c


Changeset:
Modified: branches/SAMBA_3_0/source/script/tests/timelimit.c
===================================================================
--- branches/SAMBA_3_0/source/script/tests/timelimit.c	2006-06-01 06:06:18 UTC (rev 15988)
+++ branches/SAMBA_3_0/source/script/tests/timelimit.c	2006-06-01 06:11:31 UTC (rev 15989)
@@ -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