exit.3: Minor text restructuring for clarity

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-03-16 09:42:45 +01:00
parent fbc639312f
commit 4426609333
1 changed files with 6 additions and 5 deletions

View File

@ -140,18 +140,19 @@ After
.BR exit (),
the exit status must be transmitted to the
parent process.
There are three cases.
There are three cases:
.IP \(bu 3
If the parent has set
.BR SA_NOCLDWAIT ,
or has set the
.B SIGCHLD
handler to
.BR SIG_IGN ,
the status is discarded.
the status is discarded and the child dies immediately.
.IP \(bu
If the parent was waiting on the child,
it is notified of the exit status.
In both cases the exiting
process dies immediately.
it is notified of the exit status and the child dies immediately.
.IP \(bu
If the parent has not indicated that
it is not interested in the exit status, but is not waiting,
the exiting process turns into a "zombie" process