]>
git.ipfire.org Git - thirdparty/man-pages.git/commit
abort.3: Clarify consequences of calling abort()
Clarify that atexit(3)/on_exit(3) are not called because those are
called only on normal process termination (as documented on their
respective manual pages).
Check with the following test program:
```c
#define _DEFAULT_SOURCE
#include <stdio.h>
#include <stdlib.h>
void one(void)
{
puts("atexit called");
}
void two(int, void*)
{
puts("on_exit called");
}
int main(void)
{
atexit(one);
on_exit(two, NULL);
puts("terminating");
//abort();
exit(EXIT_SUCCESS);
}
```
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Stefan Puiu <stefan.puiu@gmail.com>
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>