diff --git a/ChangeLog b/ChangeLog index 38630e023..ca4506fbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon May 5 15:32:42 CEST 2008 (tk) +---------------------------------- + * doc/clamdoc.tex: add a note about forking daemons (bb#906) + Sun May 4 21:57:33 EEST 2008 (edwin) ------------------------------------ * libclamav/Makefile.am: link .la files first, this diff --git a/docs/clamdoc.pdf b/docs/clamdoc.pdf index 61b6f5d3a..d16cb4db4 100644 Binary files a/docs/clamdoc.pdf and b/docs/clamdoc.pdf differ diff --git a/docs/clamdoc.tex b/docs/clamdoc.tex index c349fb9b6..6bde241a4 100644 --- a/docs/clamdoc.tex +++ b/docs/clamdoc.tex @@ -881,6 +881,13 @@ struct cl_limits { Because the engine structure occupies a few megabytes of system memory, you should release it with \verb+cl_free+ if you no longer need to scan files. + \subsubsection{Forking daemons} + If you're using libclamav with a forking daemon you should call + \verb+srand()+ 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. + \subsubsection{clamav-config} Use \verb+clamav-config+ to check compilation information for libclamav. \begin{verbatim}