svn commit: trunk/busybox/init

vda at busybox.net vda at busybox.net
Tue Feb 19 12:08:39 UTC 2008


Author: vda
Date: 2008-02-19 04:08:38 -0800 (Tue, 19 Feb 2008)
New Revision: 21065

Log:
init: HUP should not be temporarily set to "restart",
we use it for config reload, and we have QUIT for "restart".



Modified:
   trunk/busybox/init/init.c


Changeset:
Modified: trunk/busybox/init/init.c
===================================================================
--- trunk/busybox/init/init.c	2008-02-19 11:36:22 UTC (rev 21064)
+++ trunk/busybox/init/init.c	2008-02-19 12:08:38 UTC (rev 21065)
@@ -853,11 +853,8 @@
 		}
 		/* Set up sig handlers  -- be sure to
 		 * clear all of these in run() */
+		signal(SIGQUIT, exec_restart_action);
 		bb_signals(0
-			+ (1 << SIGHUP)
-			+ (1 << SIGQUIT)
-			, exec_restart_action);
-		bb_signals(0
 			+ (1 << SIGUSR1)  /* halt */
 			+ (1 << SIGUSR2)  /* poweroff */
 			+ (1 << SIGTERM)  /* reboot */




More information about the busybox-cvs mailing list