Date: Wed, 21 Aug 2024 10:33:24 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 2a1e8d7c30c9 - stable/14 - exit(3): clarify how to obtain full exit status of the exited process Message-ID: <202408211033.47LAXOwl078462@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408211033.47LAXOwl078462>