]> git.ipfire.org Git - thirdparty/util-linux.git/blob - sys-utils/setsid.1
Merge branch 'mount-typo' of https://github.com/Liam-Ryan/util-linux
[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.
17 .SH OPTIONS
18 .TP
19 .BR \-c , " \-\-ctty"
20 Set the controlling terminal to the current one.
21 .TP
22 .BR \-w , " \-\-wait"
23 Wait for the execution of the program to end, and return the exit value of
24 this program as the return value of
25 .BR setsid .
26 .TP
27 .BR \-V , " \-\-version"
28 Display version information and exit.
29 .TP
30 .BR \-h , " \-\-help"
31 Display help text and exit.
32 .SH "SEE ALSO"
33 .BR setsid (2)
34 .SH AUTHOR
35 Rick Sladkey <jrs@world.std.com>
36 .SH AVAILABILITY
37 The setsid command is part of the util-linux package and is available from
38 https://www.kernel.org/pub/linux/utils/util-linux/.