svn commit: trunk/busybox/runit

vda at busybox.net vda at busybox.net
Fri Oct 31 02:37:18 UTC 2008


Author: vda
Date: 2008-10-30 19:37:18 -0700 (Thu, 30 Oct 2008)
New Revision: 23873

Log:
runsvdir: if we have PID == 1, SIGHUP should make small pause,
not 1 minute one



Modified:
   trunk/busybox/runit/runsvdir.c


Changeset:
Modified: trunk/busybox/runit/runsvdir.c
===================================================================
--- trunk/busybox/runit/runsvdir.c	2008-10-31 02:17:30 UTC (rev 23872)
+++ trunk/busybox/runit/runsvdir.c	2008-10-31 02:37:18 UTC (rev 23873)
@@ -371,9 +371,10 @@
 				goto ret;
 		default:
 			/* so we are init. do not exit,
-			 * and pause respawning - we may be rebooting... */
+			 * and pause respawning - we may be rebooting
+			 * (but SIGHUP is not a reboot, make short pause) */
+			deadline = (SIGHUP == bb_got_signal) ? 5 : 60;
 			bb_got_signal = 0;
-			deadline = 60;
 			goto do_sleep;
 		}
 	}




More information about the busybox-cvs mailing list