atexit: document z/OS bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Dec 2024 07:01:14 +0000 (23:01 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Dec 2024 07:01:42 +0000 (23:01 -0800)
* doc/posix-functions/atexit.texi: Mention z/OS issue
raised by Sachin <https://bugs.gnu.org/74788>.

ChangeLog
doc/posix-functions/atexit.texi

index 47b518100f8a3d6a13712c4e9d06615791ee88fa..0298812ea26d376a7c066e1847a0ac10b424c5f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-12  Paul Eggert  <eggert@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  <bruno@clisp.org>
 
        bcp47: Silence a gcc 14 -Wanalyzer-infinite-loop warning.
index 2f0c504c6df9c8c21f283128a423062cb93f5492..2e6a1d1cacaebf76d2f1d02a89497d3ac9148445 100644 (file)
@@ -15,4 +15,12 @@ This function is missing on some old platforms.
 
 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