]> git.ipfire.org Git - thirdparty/util-linux.git/blob - sys-utils/setsid.1.adoc
unshare: Support multiple ID ranges for user and group maps
[thirdparty/util-linux.git] / sys-utils / setsid.1.adoc
1 //po4a: entry man manual
2 // Rick Sladkey <jrs@world.std.com>
3 // In the public domain.
4 = setsid(1)
5 :doctype: manpage
6 :man manual: User Commands
7 :man source: util-linux {release-version}
8 :page-layout: base
9 :command: setsid
10
11 == NAME
12
13 setsid - run a program in a new session
14
15 == SYNOPSIS
16
17 *setsid* [options] _program_ [_arguments_]
18
19 == DESCRIPTION
20
21 *setsid* runs a program in a new session. The command calls *fork*(2) if already a process group leader. Otherwise, it executes a program in the current process. This default behavior is possible to override by the *--fork* option.
22
23 == OPTIONS
24
25 *-c*, *--ctty*::
26 Set the controlling terminal to the current one.
27
28 *-f*, *--fork*::
29 Always create a new process.
30
31 *-w*, *--wait*::
32 Wait for the execution of the program to end, and return the exit status of this program as the exit status of *setsid*.
33
34 *-V*, *--version*::
35 Display version information and exit.
36
37 *-h*, *--help*::
38 Display help text and exit.
39
40 == AUTHORS
41
42 mailto:jrs@world.std.com[Rick Sladkey]
43
44 == SEE ALSO
45
46 *setsid*(2)
47
48 include::man-common/bugreports.adoc[]
49
50 include::man-common/footer.adoc[]
51
52 ifdef::translation[]
53 include::man-common/translation.adoc[]
54 endif::[]