docs/html/node57.html
ba4cac37
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
e79e504d
 <!--Converted with LaTeX2HTML 2008 (1.71)
ba4cac37
 original version by:  Nikos Drakos, CBLU, University of Leeds
 * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
 * with significant contributions from:
   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
 <HTML>
 <HEAD>
9dd0bbc8
 <TITLE>Forking daemons</TITLE>
 <META NAME="description" CONTENT="Forking daemons">
ba4cac37
 <META NAME="keywords" CONTENT="clamdoc">
 <META NAME="resource-type" CONTENT="document">
 <META NAME="distribution" CONTENT="global">
 
e79e504d
 <META NAME="Generator" CONTENT="LaTeX2HTML v2008">
ba4cac37
 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
 
 <LINK REL="STYLESHEET" HREF="clamdoc.css">
 
 <LINK REL="next" HREF="node58.html">
 <LINK REL="previous" HREF="node56.html">
9dd0bbc8
 <LINK REL="up" HREF="node47.html">
ba4cac37
 <LINK REL="next" HREF="node58.html">
 </HEAD>
 
 <BODY >
 
 <DIV CLASS="navigation"><!--Navigation Panel-->
432936de
 <A NAME="tex2html863"
ba4cac37
   HREF="node58.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
432936de
 <A NAME="tex2html859"
9dd0bbc8
   HREF="node47.html">
ba4cac37
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
432936de
 <A NAME="tex2html853"
ba4cac37
   HREF="node56.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
432936de
 <A NAME="tex2html861"
ba4cac37
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
 <BR>
432936de
 <B> Next:</B> <A NAME="tex2html864"
9dd0bbc8
   HREF="node58.html">clamav-config</A>
432936de
 <B> Up:</B> <A NAME="tex2html860"
9dd0bbc8
   HREF="node47.html">API</A>
432936de
 <B> Previous:</B> <A NAME="tex2html854"
9dd0bbc8
   HREF="node56.html">Memory</A>
432936de
  &nbsp; <B>  <A NAME="tex2html862"
ba4cac37
   HREF="node1.html">Contents</A></B> 
 <BR>
 <BR></DIV>
 <!--End of Navigation Panel-->
 
9dd0bbc8
 <H3><A NAME="SECTION000731000000000000000">
 Forking daemons</A>
06e931e5
 </H3>
9dd0bbc8
     If you're using libclamav with a forking daemon you should call
     <code>srand()</code> inside a forked child before making any calls to the
     libclamav functions. This will avoid possible collisions with temporary
     filenames created by other processes of the daemon. This procedure
     is not required for multi-threaded daemons.
ba4cac37
 
 <P>
9dd0bbc8
 <BR><HR>
ba4cac37
 <ADDRESS>
432936de
 Cisco 2018-03-28
ba4cac37
 </ADDRESS>
 </BODY>
 </HTML>