mirror of https://github.com/mkerrisk/man-pages
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:
parent
983c70fcfc
commit
33e2220924
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue