Skip to content

Commit

Permalink
exit(3): clarify how to obtain full exit status of the exited process
Browse files Browse the repository at this point in the history
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
  • Loading branch information
kostikbel committed Jul 29, 2024
1 parent 3f3ec4b commit c4269e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/libc/stdlib/exit.3
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c4269e6

Please sign in to comment.