diff options
author | Karel Zak | 2017-11-08 11:38:26 +0100 |
---|---|---|
committer | Karel Zak | 2017-11-08 11:38:26 +0100 |
commit | 180176213000b15cabc7bf39f7cad656b8f5ae38 (patch) | |
tree | c69c8ef9dfa393baf9f61bd2fe297e2b0299de95 /sys-utils/setsid.1 | |
parent | rtcwake: add note about HW and sleep to the man page (diff) | |
download | kernel-qcow2-util-linux-180176213000b15cabc7bf39f7cad656b8f5ae38.tar.gz kernel-qcow2-util-linux-180176213000b15cabc7bf39f7cad656b8f5ae38.tar.xz kernel-qcow2-util-linux-180176213000b15cabc7bf39f7cad656b8f5ae38.zip |
setsid: new option --fork
Let's make semantic more predictable.
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 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys-utils/setsid.1 b/sys-utils/setsid.1 index 61b13ce1d..64f055571 100644 --- a/sys-utils/setsid.1 +++ b/sys-utils/setsid.1 @@ -12,13 +12,17 @@ setsid \- run a program in a new session .B setsid 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. +if already a process group leader. Otherwise, it executes a program in the +current process. This default behavior is possible to override by +the \fB\-\-fork\fR option. .SH OPTIONS .TP .BR \-c , " \-\-ctty" Set the controlling terminal to the current one. .TP +.BR \-f , " \-\-fork" +Always create a new process. +.TP .BR \-w , " \-\-wait" Wait for the execution of the program to end, and return the exit value of this program as the return value of |