From b3edd24200cdd17bc95b5f71675ebecd0a61bd13 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 31 Jan 2022 19:48:38 +0100 Subject: cleaner handling of fatal boot errors --- rvnit | Bin 76368 -> 76784 bytes rvnit.c | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rvnit b/rvnit index 1e0d702..4f12f2a 100755 Binary files a/rvnit and b/rvnit differ diff --git a/rvnit.c b/rvnit.c index 066dcbd..1babf0b 100644 --- a/rvnit.c +++ b/rvnit.c @@ -962,6 +962,7 @@ cont2: pthread_mutex_unlock(&services_lock); } +fatal: if (pid1) own_console(); @@ -983,9 +984,7 @@ cont2: putenv(rvnit_want_reboot); } - for (level = 99; level >= 0; level--) { -fatal: ; // arrives with level < 99 - + for (; level >= 0; level--) { /* kill all of level */ int oneshot = 0; int daemons = 0; -- cgit 1.4.1