setsid.2: Improve wording of text on calling setsid() after fork()+_exit()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-11-27 10:56:34 +01:00
parent 983c70fcfc
commit 33e2220924
1 changed files with 3 additions and 3 deletions

View File

@ -87,11 +87,11 @@ such a scenario would break the strict
two-level hierarchy of sessions and process groups. two-level hierarchy of sessions and process groups.
In order to be sure that In order to be sure that
.BR setsid () .BR setsid ()
will succeed, will succeed, call
.BR fork (2) .BR fork (2)
and and have the parent
.BR _exit (2), .BR _exit (2),
and have the child do while the child (which by definition can't be a process group leader) calls
.BR setsid (). .BR setsid ().
If a session has a controlling terminal, and the If a session has a controlling terminal, and the