- 论坛徽章:
- 324
|
主要是_exit不调用atexit等注册的函数
man:
The function _exit() is like exit(), but does not call any functions registered with atexit() or on_exit(). Whether
it flushes standard I/O buffers and removes temporary files created with tmpfile(3) is implementation dependent. On
the other hand, _exit() does close open file descriptors, and this may cause an unknown delay, waiting for pending
output to finish. If the delay is undesired, it may be useful to call functions like tcflush() before calling _exit().
Whether any pending I/O is cancelled, and which pending I/O may be cancelled upon _exit(), is implementation-depen-
dent. |
|