1SETSID(1)                        User Commands                       SETSID(1)
2
3
4

NAME

6       setsid - run a program in a new session
7

SYNOPSIS

9       setsid [options] program [arguments]
10

DESCRIPTION

12       setsid runs a program in a new session. The command calls fork(2) if
13       already a process group leader. Otherwise, it executes a program in the
14       current process. This default behavior is possible to override by the
15       --fork option.
16

OPTIONS

18       -c, --ctty
19           Set the controlling terminal to the current one.
20
21       -f, --fork
22           Always create a new process.
23
24       -w, --wait
25           Wait for the execution of the program to end, and return the exit
26           status of this program as the exit status of setsid.
27
28       -V, --version
29           Display version information and exit.
30
31       -h, --help
32           Display help text and exit.
33

AUTHORS

35       Rick Sladkey <jrs@world.std.com>
36

SEE ALSO

38       setsid(2)
39

REPORTING BUGS

41       For bug reports, use the issue tracker at
42       https://github.com/util-linux/util-linux/issues.
43

AVAILABILITY

45       The setsid command is part of the util-linux package which can be
46       downloaded from Linux Kernel Archive
47       <https://www.kernel.org/pub/linux/utils/util-linux/>.
48
49
50
51util-linux 2.39.2                 2023-06-14                         SETSID(1)
Impressum