From 3ed1e74e16da720dba46d117b12e21b9405ac569 Mon Sep 17 00:00:00 2001 From: turret Date: Thu, 11 Jan 2024 17:36:37 -0600 Subject: init: panic on keyboard interrupt also: change panic signal to be SIGKILL as sigint being caught would result in a loop --- init/log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'init/log.c') diff --git a/init/log.c b/init/log.c index a3d0a7a..5c1b883 100644 --- a/init/log.c +++ b/init/log.c @@ -168,8 +168,9 @@ void _panic(const char *fileorigin, } /* if we are going to die, we dont really need to clean up */ - if(mode == PANICMODE_DIE) - kill(-getpgid(pid), SIGINT); + if(mode == PANICMODE_DIE) { + kill(-getpgid(pid), SIGKILL); + } print(NOLOCK("5") "------------[ cut here ]------------"); -- cgit v1.2.3