git: 2a1e8d7c30c9 - stable/14 - exit(3): clarify how to obtain full exit status of the exited process
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Aug 2024 10:33:24 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2a1e8d7c30c90e17fccaeec89e4963a8d825063d commit 2a1e8d7c30c90e17fccaeec89e4963a8d825063d Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-07-25 17:28:45 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-08-21 10:32:49 +0000 exit(3): clarify how to obtain full exit status of the exited process (cherry picked from commit c4269e63ecf301306a6176b9fe9002c4c2265695) --- lib/libc/stdlib/exit.3 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3 index c190f5fac27f..2fb3ab165dae 100644 --- a/lib/libc/stdlib/exit.3 +++ b/lib/libc/stdlib/exit.3 @@ -103,6 +103,20 @@ values described in .Xr sysexits 3 may be used to provide more information to the parent process. .Pp +The complete +.Fa status +value is avaliable as +.Va si_status +member of the +.Vt siginfo_t +structure, to the +.Xr wait6 2 +and +.Xr sigwaitinfo 2 +callers, and +.Va SIGCHLD +signal handlers. +.Pp Calls to the .Fn exit function are serialized.