svn commit: trunk/busybox/runit

vda at busybox.net vda at busybox.net
Wed Oct 29 12:07:34 UTC 2008


Author: vda
Date: 2008-10-29 05:07:34 -0700 (Wed, 29 Oct 2008)
New Revision: 23847

Log:
runsvdir: kill another global



Modified:
   trunk/busybox/runit/runsvdir.c


Changeset:
Modified: trunk/busybox/runit/runsvdir.c
===================================================================
--- trunk/busybox/runit/runsvdir.c	2008-10-29 12:04:45 UTC (rev 23846)
+++ trunk/busybox/runit/runsvdir.c	2008-10-29 12:07:34 UTC (rev 23847)
@@ -58,7 +58,6 @@
 	struct pollfd pfd[1];
 	unsigned stamplog;
 #endif
-	smallint set_pgrp;
 };
 #define G (*(struct globals*)&bb_common_bufsiz1)
 #define sv          (G.sv          )
@@ -69,7 +68,6 @@
 #define logpipe     (G.logpipe     )
 #define pfd         (G.pfd         )
 #define stamplog    (G.stamplog    )
-#define set_pgrp    (G.set_pgrp    )
 #define INIT_G() do { \
 } while (0)
 
@@ -109,7 +107,7 @@
 	}
 	if (pid == 0) {
 		/* child */
-		if (set_pgrp)
+		if (option_mask32) /* -P option? */
 			setsid();
 /* man execv:
  * "Signals set to be caught by the calling process image
@@ -229,7 +227,7 @@
 	INIT_G();
 
 	opt_complementary = "-1";
-	set_pgrp = getopt32(argv, "P");
+	getopt32(argv, "P");
 	argv += optind;
 
 	bb_signals(0




More information about the busybox-cvs mailing list