diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-10-31 02:37:18 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-10-31 02:37:18 +0000 |
commit | 028eab61bc44f34f27a4fb5cae03b5b6460b024d (patch) | |
tree | 44bcd6d2fef18ec18cad7637624992303033b1ab | |
parent | bb26db49b1b3a6cbc4b72c0cc6948432e3e77996 (diff) | |
download | busybox-w32-028eab61bc44f34f27a4fb5cae03b5b6460b024d.tar.gz busybox-w32-028eab61bc44f34f27a4fb5cae03b5b6460b024d.tar.bz2 busybox-w32-028eab61bc44f34f27a4fb5cae03b5b6460b024d.zip |
runsvdir: if we have PID == 1, SIGHUP should make small pause,
not 1 minute one
-rw-r--r-- | runit/runsvdir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index d5e58e9e7..581787f03 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -371,9 +371,10 @@ int runsvdir_main(int argc UNUSED_PARAM, char **argv) | |||
371 | goto ret; | 371 | goto ret; |
372 | default: | 372 | default: |
373 | /* so we are init. do not exit, | 373 | /* so we are init. do not exit, |
374 | * and pause respawning - we may be rebooting... */ | 374 | * and pause respawning - we may be rebooting |
375 | * (but SIGHUP is not a reboot, make short pause) */ | ||
376 | deadline = (SIGHUP == bb_got_signal) ? 5 : 60; | ||
375 | bb_got_signal = 0; | 377 | bb_got_signal = 0; |
376 | deadline = 60; | ||
377 | goto do_sleep; | 378 | goto do_sleep; |
378 | } | 379 | } |
379 | } | 380 | } |