git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@86 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2003/10/23 04:45:19... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Wed Oct 22 20:44:29 BST 2003 (njh) |
|
2 |
+--------------------------------- |
|
3 |
+ * clamav-milter: more calls to pthread_cond_broadcast |
|
4 |
+ |
|
1 | 5 |
Mon Oct 20 01:57:16 CEST 2003 |
2 | 6 |
---------------------------------- |
3 | 7 |
* sigtool: receive digital signature from remote ClamAV Signing Service |
... | ... |
@@ -143,9 +143,13 @@ |
143 | 143 |
* 0.60m 12/10/03 Now does sanity check if using localSocket |
144 | 144 |
* Gets version info from clamd |
145 | 145 |
* Only reset fd's 0/1/2 if !ForeGround |
146 |
+ * 0.60n 22/10/03 Call pthread_cont_broadcast more often |
|
146 | 147 |
* |
147 | 148 |
* Change History: |
148 | 149 |
* $Log: clamav-milter.c,v $ |
150 |
+ * Revision 1.15 2003/10/22 19:44:01 nigelhorne |
|
151 |
+ * more calls to pthread_cond_broadcast |
|
152 |
+ * |
|
149 | 153 |
* Revision 1.14 2003/10/12 08:37:21 nigelhorne |
150 | 154 |
* Uses VERSION command to get version information |
151 | 155 |
* |
... | ... |
@@ -174,9 +178,9 @@ |
174 | 174 |
* Added -f flag use MaxThreads if --max-children not set |
175 | 175 |
* |
176 | 176 |
*/ |
177 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.14 2003/10/12 08:37:21 nigelhorne Exp $"; |
|
177 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.15 2003/10/22 19:44:01 nigelhorne Exp $"; |
|
178 | 178 |
|
179 |
-#define CM_VERSION "0.60m" |
|
179 |
+#define CM_VERSION "0.60n" |
|
180 | 180 |
|
181 | 181 |
/*#define CONFDIR "/usr/local/etc"*/ |
182 | 182 |
|
... | ... |
@@ -1372,17 +1376,14 @@ clamfi_cleanup(SMFICTX *ctx) |
1372 | 1372 |
pthread_mutex_lock(&n_children_mutex); |
1373 | 1373 |
/* |
1374 | 1374 |
* Deliberately errs on the side of broadcasting too many times |
1375 |
- * |
|
1376 |
- * No need to check for underflow since n_children must be > 0 |
|
1377 | 1375 |
*/ |
1378 |
- --n_children; |
|
1379 |
- if((n_children < max_children) && (n_children > 0)) { |
|
1376 |
+ if(n_children > 0) |
|
1377 |
+ --n_children; |
|
1380 | 1378 |
#ifdef CL_DEBUG |
1381 |
- puts("pthread_cond_broadcast"); |
|
1379 |
+ puts("pthread_cond_broadcast"); |
|
1382 | 1380 |
#endif |
1383 |
- if(pthread_cond_broadcast(&n_children_cond) < 0) |
|
1384 |
- perror("pthread_cond_broadcast"); |
|
1385 |
- } |
|
1381 |
+ if(pthread_cond_broadcast(&n_children_cond) < 0) |
|
1382 |
+ perror("pthread_cond_broadcast"); |
|
1386 | 1383 |
#ifdef CL_DEBUG |
1387 | 1384 |
printf("<n_children = %d\n", n_children); |
1388 | 1385 |
#endif |