diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-09-12 06:46:50 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-09-12 06:46:50 +0100 |
| commit | 7903f95f0a694b441ac6fa6ef8579ab7cc5b0902 (patch) | |
| tree | 13c85f7b92740b352a355af5e3c4f2adcab70f5c | |
| parent | 1a7655042a63484ef18c7526bf503af611722e9f (diff) | |
| download | man-pages-7903f95f0a694b441ac6fa6ef8579ab7cc5b0902.tar.gz | |
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>
| -rw-r--r-- | man2/setpgid.2 | 10 | ||||
| -rw-r--r-- | man2/setsid.2 | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/man2/setpgid.2 b/man2/setpgid.2 index 3bbbb40caa..73647b6363 100644 --- a/man2/setpgid.2 +++ b/man2/setpgid.2 @@ -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 diff --git a/man2/setsid.2 b/man2/setsid.2 index 089bf26ce4..57eeb891f6 100644 --- a/man2/setsid.2 +++ b/man2/setsid.2 @@ -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), |
