git-svn: trunk@1523
Nigel Horne authored on 2005/05/07 02:55:50... | ... |
@@ -22,7 +22,7 @@ |
22 | 22 |
* |
23 | 23 |
* For installation instructions see the file INSTALL that came with this file |
24 | 24 |
*/ |
25 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.196 2005/05/06 16:22:07 nigelhorne Exp $"; |
|
25 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.197 2005/05/06 17:55:50 nigelhorne Exp $"; |
|
26 | 26 |
|
27 | 27 |
#define CM_VERSION "0.84f" |
28 | 28 |
|
... | ... |
@@ -1952,6 +1952,7 @@ clamfi_connect(SMFICTX *ctx, char *hostname, _SOCK_ADDR *hostaddr) |
1952 | 1952 |
accepting = accept_inputs; |
1953 | 1953 |
pthread_mutex_unlock(&accept_mutex); |
1954 | 1954 |
if(!accepting) { |
1955 |
+#if 1 |
|
1955 | 1956 |
cli_warnmsg("Not accepting inputs at the moment\n"); |
1956 | 1957 |
/* |
1957 | 1958 |
* We must refuse here even if dont_wait isn't set, since |
... | ... |
@@ -1959,7 +1960,6 @@ clamfi_connect(SMFICTX *ctx, char *hostname, _SOCK_ADDR *hostaddr) |
1959 | 1959 |
* and refuse to have anything more to do with us until |
1960 | 1960 |
* the program is restarted |
1961 | 1961 |
*/ |
1962 |
-#if 0 |
|
1963 | 1962 |
if(dont_wait) |
1964 | 1963 |
return SMFIS_TEMPFAIL; |
1965 | 1964 |
pthread_mutex_lock(&accept_mutex); |
... | ... |
@@ -1968,7 +1968,7 @@ clamfi_connect(SMFICTX *ctx, char *hostname, _SOCK_ADDR *hostaddr) |
1968 | 1968 |
pthread_mutex_unlock(&accept_mutex); |
1969 | 1969 |
cli_warnmsg("Accepting inputs again\n"); |
1970 | 1970 |
#endif |
1971 |
- return SMFIS_TEMPFAIL; |
|
1971 |
+ /*return SMFIS_TEMPFAIL;*/ |
|
1972 | 1972 |
} |
1973 | 1973 |
|
1974 | 1974 |
if(ctx == NULL) { |
... | ... |
@@ -4620,7 +4620,8 @@ watchdog(void *a) |
4620 | 4620 |
} |
4621 | 4621 |
pthread_mutex_lock(&accept_mutex); |
4622 | 4622 |
accept_inputs = 1; |
4623 |
- pthread_cond_broadcast(&accept_cond); |
|
4623 |
+ if(pthread_cond_broadcast(&accept_cond) < 0) |
|
4624 |
+ perror("pthread_cond_broadcast"); |
|
4624 | 4625 |
pthread_mutex_unlock(&accept_mutex); |
4625 | 4626 |
} else { |
4626 | 4627 |
smfi_stop(); |