mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Revert 5cdbd57, causes prolonged delays at shutdown/reboot
Blocking SIGTERM means Finit will wait another two seconds before it sends SIGKILL, which casues a delayed [WARN] Killing ... before we can proceed to shutdown/reboot -- not OK. Don't know what I was smoking back in 2017, but it must've been good. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
b994858907
commit
ba93791077
1 file changed
-8
@@ -98,11 +98,6 @@ static void do_kill(int signo, char *msg)
|
||||
do_sleep(5);
|
||||
}
|
||||
|
||||
static void sig(int signo)
|
||||
{
|
||||
(void)signo; /* NOP */
|
||||
}
|
||||
|
||||
static int usage(int rc)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [OPTIONS]\n\n"
|
||||
@@ -164,9 +159,6 @@ int reboot_main(int argc, char *argv[])
|
||||
/* Check for any overrides */
|
||||
transform(NULL);
|
||||
|
||||
/* Catch and ignore SIGTERM on halt/poweroff */
|
||||
signal(SIGTERM, sig);
|
||||
|
||||
if (force) {
|
||||
switch (cmd) {
|
||||
case CMD_REBOOT:
|
||||
|
||||
Reference in new issue
Block a user