diff options
author | Karel Zak | 2017-10-10 12:06:09 +0200 |
---|---|---|
committer | Karel Zak | 2017-10-10 12:06:58 +0200 |
commit | 1f06d754be70b500fd88b0b3b1e0d2c8877f7b09 (patch) | |
tree | 9414cfa347abdf3c866bf10fb25e022e207fa551 /sys-utils/setsid.1 | |
parent | agetty: fix /etc/os-release parsing (diff) | |
download | kernel-qcow2-util-linux-1f06d754be70b500fd88b0b3b1e0d2c8877f7b09.tar.gz kernel-qcow2-util-linux-1f06d754be70b500fd88b0b3b1e0d2c8877f7b09.tar.xz kernel-qcow2-util-linux-1f06d754be70b500fd88b0b3b1e0d2c8877f7b09.zip |
setsid: document fork(2) usage
Addresses: https://github.com/karelzak/util-linux/issues/518
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/setsid.1')
-rw-r--r-- | sys-utils/setsid.1 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-utils/setsid.1 b/sys-utils/setsid.1 index 67c4208a7..61b13ce1d 100644 --- a/sys-utils/setsid.1 +++ b/sys-utils/setsid.1 @@ -10,7 +10,10 @@ setsid \- run a program in a new session .RI [ arguments ] .SH DESCRIPTION .B setsid -runs a program in a new session. +runs a program in a new session. The command calls +.BR fork (2) +if already a process group leader. Otherwise, it executes a program in the +current process. .SH OPTIONS .TP .BR \-c , " \-\-ctty" |