Date: Mon, 29 Jul 2024 23:59:02 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: c4269e63ecf3 - main - exit(3): clarify how to obtain full exit status of the exited process Message-ID: <202407292359.46TNx217051865@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c4269e63ecf301306a6176b9fe9002c4c2265695 commit c4269e63ecf301306a6176b9fe9002c4c2265695 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-07-25 17:28:45 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-07-29 23:57:34 +0000 exit(3): clarify how to obtain full exit status of the exited process Sponsored by: The FreeBSD Foundation MFC after: 3 days --- 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 b117e77c9e3b..bfb14c5c9f83 100644 --- a/lib/libc/stdlib/exit.3 +++ b/lib/libc/stdlib/exit.3 @@ -102,6 +102,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?202407292359.46TNx217051865>