projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb26db4
)
runsvdir: if we have PID == 1, SIGHUP should make small pause,
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 31 Oct 2008 02:37:18 +0000
(
02:37
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 31 Oct 2008 02:37:18 +0000
(
02:37
-0000)
not 1 minute one
runit/runsvdir.c
patch
|
blob
|
history
diff --git
a/runit/runsvdir.c
b/runit/runsvdir.c
index d5e58e9e7954ede867c95d2d4526d357e0b40e0b..581787f03654f8cd3aec3b13e59c1b7f072e0fbf 100644
(file)
--- a/
runit/runsvdir.c
+++ b/
runit/runsvdir.c
@@
-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;
}
}