diff options
author | rsc <devnull@localhost> | 2003-11-26 00:48:56 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-11-26 00:48:56 +0000 |
commit | 1555bd7aaad44bb26e0442a6798671be636df5b3 (patch) | |
tree | 3e8fea4e894d372840035706568f5a735f3fe058 /src/lib9/atexit.c | |
parent | 268fa933851bab18609b69064e1cc4299f7de32d (diff) | |
download | plan9port-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/atexit.c')
-rw-r--r-- | src/lib9/atexit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/atexit.c b/src/lib9/atexit.c index b1d8b977..c5cdde1d 100644 --- a/src/lib9/atexit.c +++ b/src/lib9/atexit.c @@ -50,5 +50,5 @@ exits(char *s) onex[i].f = 0; (*f)(); } - _exits(s); + exit(s && *s ? 1 : 0); } |