diff options
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c index fa0e32f..e82a504 100644 --- a/init/init.c +++ b/init/init.c @@ -110,6 +110,9 @@ int main(void) if(subsystem_handle_term(process) > 0) print(LOG_WARNING "init: failed to reap process %d", process); + if(siginfo.si_status != 0) { + panic("init: process %d exited with non-zero status (%d)", siginfo.si_status); + } } } |