mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
07039b8a36
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.