]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/setsid.1.adoc
Merge branch 'PR/lscpu-caches-sep' of github.com:karelzak/util-linux-work
[thirdparty/util-linux.git] / sys-utils / setsid.1.adoc
CommitLineData
295b3979 1//po4a: entry man manual
b9d2ddfb
MB
2// Rick Sladkey <jrs@world.std.com>
3// In the public domain.
4= setsid(1)
5:doctype: manpage
f42ed819 6:man manual: User Commands
b9d2ddfb
MB
7:man source: util-linux {release-version}
8:page-layout: base
9:command: setsid
10
11== NAME
12
13setsid - run a program in a new session
14
15== SYNOPSIS
16
4d297435 17*setsid* [options] _program_ [_arguments_]
b9d2ddfb
MB
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*::
4eab78d3 26Set the controlling terminal to the current one.
b9d2ddfb
MB
27
28*-f*, *--fork*::
4eab78d3 29Always create a new process.
b9d2ddfb
MB
30
31*-w*, *--wait*::
4eab78d3 32Wait for the execution of the program to end, and return the exit status of this program as the exit status of *setsid*.
b9d2ddfb
MB
33
34*-V*, *--version*::
4eab78d3 35Display version information and exit.
b9d2ddfb
MB
36
37*-h*, *--help*::
4eab78d3 38Display help text and exit.
b9d2ddfb
MB
39
40== AUTHORS
41
42mailto:jrs@world.std.com[Rick Sladkey]
43
44== SEE ALSO
45
46*setsid*(2)
47
625e9c61 48include::man-common/bugreports.adoc[]
b9d2ddfb 49
625e9c61 50include::man-common/footer.adoc[]
b9d2ddfb
MB
51
52ifdef::translation[]
625e9c61 53include::man-common/translation.adoc[]
b9d2ddfb 54endif::[]