man-pages/man1/setsid.1.html
2021-03-31 01:06:50 +01:00

96 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SETSID</TITLE>
</HEAD><BODY>
<H1>SETSID</H1>
Section: User Commands (1)<BR>Updated: July 2014<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
setsid - run a program in a new session
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>setsid</B>
[options]
<I>program</I>
[<I>arguments</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>setsid</B>
runs a program in a new session. The command calls
<B><A HREF="/cgi-bin/man/man2html?2+fork">fork</A></B>(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 <B>--fork</B> option.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-c</B>,<B> --ctty</B>
<DD>
Set the controlling terminal to the current one.
<DT id="2"><B>-f</B>,<B> --fork</B>
<DD>
Always create a new process.
<DT id="3"><B>-w</B>,<B> --wait</B>
<DD>
Wait for the execution of the program to end, and return the exit value of
this program as the return value of
<B>setsid</B>.
<DT id="4"><B>-V</B>,<B> --version</B>
<DD>
Display version information and exit.
<DT id="5"><B>-h</B>,<B> --help</B>
<DD>
Display help text and exit.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?2+setsid">setsid</A></B>(2)
<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>
Rick Sladkey &lt;<A HREF="mailto:jrs@world.std.com">jrs@world.std.com</A>&gt;
<A NAME="lbAH">&nbsp;</A>
<H2>AVAILABILITY</H2>
The setsid command is part of the util-linux package and is available from
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="10"><A HREF="#lbAF">SEE ALSO</A><DD>
<DT id="11"><A HREF="#lbAG">AUTHOR</A><DD>
<DT id="12"><A HREF="#lbAH">AVAILABILITY</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:27 GMT, March 31, 2021
</BODY>
</HTML>