]>
Commit | Line | Data |
---|---|---|
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 | ||
13 | setsid - 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 | 26 | Set the controlling terminal to the current one. |
b9d2ddfb MB |
27 | |
28 | *-f*, *--fork*:: | |
4eab78d3 | 29 | Always create a new process. |
b9d2ddfb MB |
30 | |
31 | *-w*, *--wait*:: | |
4eab78d3 | 32 | Wait 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 | 35 | Display version information and exit. |
b9d2ddfb MB |
36 | |
37 | *-h*, *--help*:: | |
4eab78d3 | 38 | Display help text and exit. |
b9d2ddfb MB |
39 | |
40 | == AUTHORS | |
41 | ||
42 | mailto:jrs@world.std.com[Rick Sladkey] | |
43 | ||
44 | == SEE ALSO | |
45 | ||
46 | *setsid*(2) | |
47 | ||
625e9c61 | 48 | include::man-common/bugreports.adoc[] |
b9d2ddfb | 49 | |
625e9c61 | 50 | include::man-common/footer.adoc[] |
b9d2ddfb MB |
51 | |
52 | ifdef::translation[] | |
625e9c61 | 53 | include::man-common/translation.adoc[] |
b9d2ddfb | 54 | endif::[] |