aboutsummaryrefslogtreecommitdiffstats
path: root/init/log.c
diff options
context:
space:
mode:
authorturret <turret@duck.com>2023-12-18 15:44:12 -0600
committerturret <turret@duck.com>2023-12-18 15:44:12 -0600
commit3d920fd2be05203c12452c2f3ccec2d6112a568c (patch)
treeada1e5decb8a8ce404440b0985584ac09fb6bf0b /init/log.c
parent77c9eeb504b911ab677f63085c37482cfa67bc96 (diff)
downloaddiscord-bot-skeleton-3d920fd2be05203c12452c2f3ccec2d6112a568c.tar.gz
discord-bot-skeleton-3d920fd2be05203c12452c2f3ccec2d6112a568c.tar.bz2
discord-bot-skeleton-3d920fd2be05203c12452c2f3ccec2d6112a568c.zip
panic: use exit_group instead of exit
Diffstat (limited to 'init/log.c')
-rw-r--r--init/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/log.c b/init/log.c
index c7d69f6..b26a639 100644
--- a/init/log.c
+++ b/init/log.c
@@ -169,7 +169,7 @@ void _panic(const char *fileorigin, const int lineorigin, const char *fmt, ...)
if(pid != mainpid && mode == PANICMODE_RESPAWN) {
/* we want to let the main process handle the rest */
subsystem_change_mode(pid, mode);
- syscall(SYS_exit, 1);
+ syscall(SYS_exit_group, 1);
}
}