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:
Joachim Wiberg committed 2022-02-13 22:45:47 +01:00
1 parent b994858907
commit ba93791077
1 file changed
-8
-8
View File
@@ -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: