diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-01-31 19:48:38 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-01-31 19:48:38 +0100 |
commit | b3edd24200cdd17bc95b5f71675ebecd0a61bd13 (patch) | |
tree | 736e99e95f22640575cbb2c948a964520cf3ee4c | |
parent | 6af2be1353faff4a257425620419da3f77327b83 (diff) | |
download | rvnit-b3edd24200cdd17bc95b5f71675ebecd0a61bd13.tar.gz rvnit-b3edd24200cdd17bc95b5f71675ebecd0a61bd13.tar.xz rvnit-b3edd24200cdd17bc95b5f71675ebecd0a61bd13.zip |
cleaner handling of fatal boot errors
-rwxr-xr-x | rvnit | bin | 76368 -> 76784 bytes | |||
-rw-r--r-- | rvnit.c | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/rvnit b/rvnit index 1e0d702..4f12f2a 100755 --- a/rvnit +++ b/rvnit Binary files differdiff --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; |