mirror of
https://github.com/sheumann/hush.git
synced 2024-12-30 05:29:47 +00:00
runsvdir: if we have PID == 1, SIGHUP should make small pause,
not 1 minute one
This commit is contained in:
parent
bb26db49b1
commit
028eab61bc
@ -371,9 +371,10 @@ int runsvdir_main(int argc UNUSED_PARAM, char **argv)
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user