From 180176213000b15cabc7bf39f7cad656b8f5ae38 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 8 Nov 2017 11:38:26 +0100 Subject: setsid: new option --fork Let's make semantic more predictable. Addresses: https://github.com/karelzak/util-linux/issues/518 Signed-off-by: Karel Zak --- sys-utils/setsid.1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys-utils/setsid.1') 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 -- cgit v1.2.3-55-g7522