call exit rather than _exits inside exits,
so that the c library atexit handlers get a chance to run.
This commit is contained in:
parent
268fa93385
commit
1555bd7aaa
3 changed files with 10 additions and 32 deletions
|
|
@ -50,5 +50,5 @@ exits(char *s)
|
|||
onex[i].f = 0;
|
||||
(*f)();
|
||||
}
|
||||
_exits(s);
|
||||
exit(s && *s ? 1 : 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue