register a function to be called at normal process termination NAME atexit - register a function to be called at normal process termination LIBRARY Standard C libra......, status & 0xFF ) is returned to the parent (see wait (2)). All functions registered with atexit (3) and on_exit (3) are called, in the reverse order of their registration. (It …...fe STANDARDS None. HISTORY SunOS 4, glibc. Removed in Solaris (SunOS 5). Use the standard atexit (3) instead. CAVEATS By the time function is executed, stack ( auto ) variables …...ables, semaphores, and file descriptors) are not released, and functions registered using atexit (3) are not called. After the last thread in a process terminates, the process t….... The function _exit () is like exit (3), but does not call any functions registered with atexit (3) or on_exit (3). Open stdio (3) streams are not flushed. On the other hand, _…...a second time. As with other cases of abnormal termination the functions registered with atexit (3) and on_exit (3) are not called. RETURN VALUE The abort () function never retu…...specifies that pthread_atfork () shall not fail with the error EINTR . SEE ALSO fork (2), atexit (3), pthreads (7)...rmit multiple initialization and finalization functions to be defined. Since glibc 2.2.3, atexit (3) can be used to register an exit handler that is automatically called when a …...rmit multiple initialization and finalization functions to be defined. Since glibc 2.2.3, atexit (3) can be used to register an exit handler that is automatically called when a …...rmit multiple initialization and finalization functions to be defined. Since glibc 2.2.3, atexit (3) can be used to register an exit handler that is automatically called when a …...y locks are not preserved ( mlock (2), mlockall (2)). • Exit handlers are not preserved ( atexit (3), on_exit (3)). • The floating-point environment is reset to the default (see…