← Commit list

028eab61b

Denis Vlasenko
Denis Vlasenko
2008-10-31
FAILED Duration: 30s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

runit/runsvdir.c+3 -2
@@ -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;
}
}