]>
Commit | Line | Data |
---|---|---|
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 |
5 | setsid \- 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 |
13 | runs a program in a new session. The command calls |
14 | .BR fork (2) | |
18017621 KZ |
15 | if already a process group leader. Otherwise, it executes a program in the |
16 | current process. This default behavior is possible to override by | |
17 | the \fB\-\-fork\fR option. | |
8a2f04dd HH |
18 | .SH OPTIONS |
19 | .TP | |
cf8e0bae | 20 | .BR \-c , " \-\-ctty" |
8a2f04dd | 21 | Set the controlling terminal to the current one. |
0dde1997 | 22 | .TP |
18017621 KZ |
23 | .BR \-f , " \-\-fork" |
24 | Always create a new process. | |
25 | .TP | |
cf8e0bae BS |
26 | .BR \-w , " \-\-wait" |
27 | Wait for the execution of the program to end, and return the exit value of | |
28 | this program as the return value of | |
0dde1997 | 29 | .BR setsid . |
5e43af7e BS |
30 | .TP |
31 | .BR \-V , " \-\-version" | |
32 | Display version information and exit. | |
33 | .TP | |
34 | .BR \-h , " \-\-help" | |
35 | Display help text and exit. | |
6dbe3af9 KZ |
36 | .SH "SEE ALSO" |
37 | .BR setsid (2) | |
38 | .SH AUTHOR | |
39 | Rick Sladkey <jrs@world.std.com> | |
86d62711 | 40 | .SH AVAILABILITY |
601d12fb | 41 | The setsid command is part of the util-linux package and is available from |
d673b74e | 42 | https://www.kernel.org/pub/linux/utils/util-linux/. |