2021-03-20 10:42:47 -05:00
//po4a: entry man manual
2021-03-13 15:33:34 -06:00
// Rick Sladkey <jrs@world.std.com>
// In the public domain.
= setsid(1)
:doctype: manpage
2021-03-21 04:00:16 -05:00
:man manual: User Commands
2021-03-13 15:33:34 -06:00
:man source: util-linux {release-version}
:page-layout: base
:command: setsid
== NAME
setsid - run a program in a new session
== SYNOPSIS
2021-03-19 12:25:50 -05:00
*setsid* [options] _program_ [_arguments_]
2021-03-13 15:33:34 -06:00
== DESCRIPTION
*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.
== OPTIONS
*-c*, *--ctty*::
2021-03-26 11:19:27 -05:00
Set the controlling terminal to the current one.
2021-03-13 15:33:34 -06:00
*-f*, *--fork*::
2021-03-26 11:19:27 -05:00
Always create a new process.
2021-03-13 15:33:34 -06:00
*-w*, *--wait*::
2021-03-26 11:19:27 -05:00
Wait for the execution of the program to end, and return the exit status of this program as the exit status of *setsid*.
2021-03-13 15:33:34 -06:00
*-V*, *--version*::
2021-03-26 11:19:27 -05:00
Display version information and exit.
2021-03-13 15:33:34 -06:00
*-h*, *--help*::
2021-03-26 11:19:27 -05:00
Display help text and exit.
2021-03-13 15:33:34 -06:00
== AUTHORS
mailto:jrs@world.std.com[Rick Sladkey]
== SEE ALSO
*setsid*(2)
2021-03-31 04:33:06 -05:00
include::man-common/bugreports.adoc[]
2021-03-13 15:33:34 -06:00
2021-03-31 04:33:06 -05:00
include::man-common/footer.adoc[]
2021-03-13 15:33:34 -06:00
ifdef::translation[]
2021-03-31 04:33:06 -05:00
include::man-common/translation.adoc[]
2021-03-13 15:33:34 -06:00
endif::[]