1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

exit(3): clarify how to obtain full exit status of the exited process

(cherry picked from commit c4269e63ec)
This commit is contained in:
Konstantin Belousov 2024-07-25 20:28:45 +03:00
parent 8d801641a3
commit 2a1e8d7c30

View File

@ -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.