]> git.ipfire.org Git - thirdparty/util-linux.git/blob - sys-utils/setsid.1
Manual pages: use the term "exit status"
[thirdparty/util-linux.git] / sys-utils / setsid.1
1 .\" Rick Sladkey <jrs@world.std.com>
2 .\" In the public domain.
3 .TH SETSID 1 "July 2014" "util-linux" "User Commands"
4 .SH NAME
5 setsid \- run a program in a new session
6 .SH SYNOPSIS
7 .B setsid
8 [options]
9 .I program
10 .RI [ arguments ]
11 .SH DESCRIPTION
12 .B setsid
13 runs a program in a new session. The command calls
14 .BR fork (2)
15 if already a process group leader. Otherwise, it executes a program in the
16 current process. This default behavior is possible to override by
17 the \fB\-\-fork\fR option.
18 .SH OPTIONS
19 .TP
20 .BR \-c , " \-\-ctty"
21 Set the controlling terminal to the current one.
22 .TP
23 .BR \-f , " \-\-fork"
24 Always create a new process.
25 .TP
26 .BR \-w , " \-\-wait"
27 Wait for the execution of the program to end, and return the exit status of
28 this program as the exit status of
29 .BR setsid .
30 .TP
31 .BR \-V , " \-\-version"
32 Display version information and exit.
33 .TP
34 .BR \-h , " \-\-help"
35 Display help text and exit.
36 .SH SEE ALSO
37 .BR setsid (2)
38 .SH AUTHORS
39 Rick Sladkey <jrs@world.std.com>
40 .SH AVAILABILITY
41 The setsid command is part of the util-linux package and is available from
42 https://www.kernel.org/pub/linux/utils/util-linux/.