* doc/posix-functions/atexit.texi: Mention z/OS issue
raised by Sachin <https://bugs.gnu.org/74788>.
---
 ChangeLog                       | 6 ++++++
 doc/posix-functions/atexit.texi | 8 ++++++++
 2 files changed, 14 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 47b518100f..0298812ea2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-12  Paul Eggert  <egg...@cs.ucla.edu>
+
+       atexit: document z/OS bug
+       * doc/posix-functions/atexit.texi: Mention z/OS issue
+       raised by Sachin <https://bugs.gnu.org/74788>.
+
 2024-12-12  Bruno Haible  <br...@clisp.org>
 
        bcp47: Silence a gcc 14 -Wanalyzer-infinite-loop warning.
diff --git a/doc/posix-functions/atexit.texi b/doc/posix-functions/atexit.texi
index 2f0c504c6d..2e6a1d1cac 100644
--- a/doc/posix-functions/atexit.texi
+++ b/doc/posix-functions/atexit.texi
@@ -15,4 +15,12 @@ atexit
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+The exit status can be incorrect for a process terminated by a signal
+during a call to a function registered by @code{atexit}.  This is
+because if a signal terminates a process after @code{exit} is called
+or @code{main} returns, the process's exit status is that specified by
+@code{exit}'s argument or by @code{main}'s return value, instead of
+being the exit status corresponding to the signal:
+z/OS 3.1.
 @end itemize
-- 
2.47.1


Reply via email to