aboutsummaryrefslogtreecommitdiffstats
path: root/init/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/log.c')
-rw-r--r--init/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/init/log.c b/init/log.c
index 9564053..83702c6 100644
--- a/init/log.c
+++ b/init/log.c
@@ -175,7 +175,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), SIGKILL);
+ kill(-getpgid(pid), SIGTERM);
+ raise(SIGTERM);
+ exit(0);
}
print(NOLOCK("5") "------------[ cut here ]------------");