Thread (2 messages) 2 messages, 2 authors, 2023-07-15

[PATCH v3] abort: clarify consequences of calling abort

From: Tomáš Golembiovský <hidden>
Date: 2023-07-12 08:12:36
Subsystem: the rest · Maintainer: Linus Torvalds

Clarify that atexit/on_exit are not called because those are called only
on normal process termination (as documented on their respective manual
pages).

Signed-off-by: Tomáš Golembiovský <redacted>
---
 man3/abort.3 | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/man3/abort.3 b/man3/abort.3
index c63eace5e..8e1554eae 100644
--- a/man3/abort.3
+++ b/man3/abort.3
@@ -47,6 +47,10 @@ function will still terminate the process.
 It does this by restoring the default disposition for
 .B SIGABRT
 and then raising the signal for a second time.
+.PP
+As with other cases of abnormal termination the functions registered with
+.BR atexit "(3) and " on_exit (3)
+are not called.
 .SH RETURN VALUE
 The
 .BR abort ()
-- 
2.41.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help