aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/exits.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-26 00:48:56 +0000
committerrsc <devnull@localhost>2003-11-26 00:48:56 +0000
commit1555bd7aaad44bb26e0442a6798671be636df5b3 (patch)
tree3e8fea4e894d372840035706568f5a735f3fe058 /src/lib9/exits.c
parent268fa933851bab18609b69064e1cc4299f7de32d (diff)
downloadplan9port-1555bd7aaad44bb26e0442a6798671be636df5b3.tar.gz
plan9port-1555bd7aaad44bb26e0442a6798671be636df5b3.tar.bz2
plan9port-1555bd7aaad44bb26e0442a6798671be636df5b3.zip
call exit rather than _exits inside exits,
so that the c library atexit handlers get a chance to run.
Diffstat (limited to 'src/lib9/exits.c')
-rw-r--r--src/lib9/exits.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib9/exits.c b/src/lib9/exits.c
deleted file mode 100644
index f4206e9a..00000000
--- a/src/lib9/exits.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <u.h>
-#include <libc.h>
-
-extern void _privdie(void);
-
-void
-exits(char *s)
-{
- _privdie();
- if(s && *s)
- exit(1);
- exit(0);
-}
-
-void
-_exits(char *s)
-{
- _privdie();
- if(s && *s)
- _exit(1);
- _exit(0);
-}