<div id="Server-temporary-directory"></div>
<div class="header">
<p>
Previous: [[cvs: Read-only repository access#Read-only repository access|Read-only access]], Up: [[cvs: The Repository#The Repository|Repository]] &nbsp; |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p>
</div>

----

<div id="Temporary-directories-for-the-server"></div>
=== Temporary directories for the server ===
<div id="index-Temporary-directories_002c-and-server"></div>
<div id="index-Server_002c-temporary-directories"></div>

While running, the <small>CVS</small> server creates temporary
directories.  They are named

<div class="example" style="margin-left: 3.2em">
 cvs-serv<var>pid</var>
</div>

where <var>pid</var> is the process identification number of
the server.
They are located in the directory specified by 
the &lsquo;<code>-T</code>&rsquo; global option (see [[cvs: Global options#Global options|Global options]]), 
the <code>TMPDIR</code> environment variable (see [[cvs: All environment variables which affect CVS#All environment variables which affect CVS|Environment variables]]), 
or, failing that, &lsquo;<tt>/tmp</tt>&rsquo;.

In most cases the server will remove the temporary
directory when it is done, whether it finishes normally
or abnormally.  However, there are a few cases in which
the server does not or cannot remove the temporary
directory, for example:


* If the server aborts due to an internal server error, it may preserve the directory to aid in debugging


* If the server is killed in a way that it has no way of cleaning up (most notably, &lsquo;<code>kill -KILL</code>&rsquo; on unix).


* If the system shuts down without an orderly shutdown, which tells the server to clean up.

In cases such as this, you will need to manually remove
the &lsquo;<tt>cvs-serv<var>pid</var></tt>&rsquo; directories.  As long as
there is no server running with process identification
number <var>pid</var>, it is safe to do so.

This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>].
