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