From 1555bd7aaad44bb26e0442a6798671be636df5b3 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 26 Nov 2003 00:48:56 +0000 Subject: call exit rather than _exits inside exits, so that the c library atexit handlers get a chance to run. --- src/lib9/atexit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib9/atexit.c') 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); } -- cgit v1.2.3