[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b
aCaB
acab at clamav.net
Sun Apr 4 01:08:02 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit 8315a81e818bd5557fc42162108d77594f7b7348
Author: aCaB <acab at clamav.net>
Date: Fri Oct 16 01:50:09 2009 +0200
do not honor MAX_CHILDREN in freshclam since we dont track them
diff --git a/freshclam/execute.c b/freshclam/execute.c
index 939f937..b2b636a 100644
--- a/freshclam/execute.c
+++ b/freshclam/execute.c
@@ -53,14 +53,10 @@ void execute( const char *type, const char *text, const struct optstruct *opts )
}
#ifdef _WIN32
- if(active_children < MAX_CHILDREN) {
- if(spawnlp(P_DETACH, text, text, NULL) == -1) {
- logg("^%s: couldn't execute \"%s\".\n", type, text);
- return;
- }
- active_children++; /* FIXME: this is never reduced */
- } else
- logg("^%s: already %d processes active.\n", type, active_children);
+ if(spawnlp(_P_NOWAIT, text, text, NULL) == -1) {
+ logg("^%s: couldn't execute \"%s\".\n", type, text);
+ return;
+ }
#else
if ( active_children<MAX_CHILDREN ) {
pid_t pid;
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list