atexit
¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/atexit.html
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
atexit
. This is
because if a signal terminates a process after exit
is called
or main
returns, the process’s exit status is that specified by
exit
’s argument or by main
’s return value, instead of
being the exit status corresponding to the signal:
z/OS 3.1.