lib_abort.c: Change call to userspace exit() into syscall _exit()
The POSIX standard dictates that during abnormal termination the functions registered by atexit() are _not_ called, also flushing the streams is optional. So in this case, it is perfectly legal / better to call the kernel system call _exit() instead. This fixes regression issues caused by removal exit() from the kernel.
This commit is contained in:
parent
5fac313df7
commit
07039b8a36
@ -63,8 +63,8 @@ void abort(void)
|
||||
* a conformant version of abort() at this time. This version does not
|
||||
* signal the calling thread all.
|
||||
*
|
||||
* exit() will flush and close all open files and terminate the thread.
|
||||
* _exit() will close all open files and terminate the thread.
|
||||
*/
|
||||
|
||||
exit(EXIT_FAILURE);
|
||||
_exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user