call exit rather than _exits inside exits,

so that the c library atexit handlers get
a chance to run.
This commit is contained in:
rsc 2003-11-26 00:48:56 +00:00
parent 268fa93385
commit 1555bd7aaa
3 changed files with 10 additions and 32 deletions

View file

@ -50,5 +50,5 @@ exits(char *s)
onex[i].f = 0;
(*f)();
}
_exits(s);
exit(s && *s ? 1 : 0);
}