aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/_exits.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/_exits.c')
-rw-r--r--src/lib9/_exits.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib9/_exits.c b/src/lib9/_exits.c
index 35ff4e67..9affe948 100644
--- a/src/lib9/_exits.c
+++ b/src/lib9/_exits.c
@@ -1,8 +1,12 @@
-#include <lib9.h>
+#include <u.h>
+#include <libc.h>
+#include "9proc.h"
void
_exits(char *s)
{
+ _p9uprocdie();
+
if(s && *s)
_exit(1);
_exit(0);