<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="ttydetach">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>ttydetach</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">djbwares</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>ttydetach</refname>
<refpurpose>run program without a controlling tty</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>ttydetach</command>
<arg choice='req'><replaceable>subprogram</replaceable></arg>
<arg choice='req' rep='repeat'><replaceable>args</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection>
<title>Description</title>

<para>
<command>ttydetach</command> eliminates its controlling tty, removes any TTY variable from the environment, and runs <replaceable>subprogram</replaceable>.
</para>

<para>
On POSIX systems, <command>ttydetach</command> must not be a process group leader.
</para>

</refsection>

<refsection>
<title>History</title>
<para>
<command>ttydetach</command> was originally part of <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>'s ptyget toolset in 1996.
</para>
</refsection>

<refsection>
<title>Author</title>
<para>
Original code and documentation by <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>.
Documentation modernizations by <personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname>.
</para>
</refsection>

</refentry>
