setpgid.2, setsid.2: Relocate some text on sessions and sessions leaders

Some text that was in setpgid(2) is better placed in setsid(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-09-12 06:46:50 +01:00
parent 1a7655042a
commit 7903f95f0a
2 changed files with 10 additions and 10 deletions

View File

@ -317,16 +317,6 @@ calls are used by programs such as
.BR bash (1)
to create process groups in order to implement shell job control.
If a session has a controlling terminal, and the
.B CLOCAL
flag for that terminal is not set,
and a terminal hangup occurs, then the session leader is sent a
.BR SIGHUP .
If the session leader exits, then a
.B SIGHUP
signal will also be sent to each process in the foreground
process group of the controlling terminal.
If the exit of the process causes a process group to become orphaned,
and if any member of the newly orphaned process group is stopped, then a
.B SIGHUP

View File

@ -90,6 +90,16 @@ and
.BR _exit (2),
and have the child do
.BR setsid ().
If a session has a controlling terminal, and the
.B CLOCAL
flag for that terminal is not set,
and a terminal hangup occurs, then the session leader is sent a
.BR SIGHUP .
If the session leader exits, then a
.B SIGHUP
signal will also be sent to each process in the foreground
process group of the controlling terminal.
.SH SEE ALSO
.BR setsid (1),
.BR getsid (2),