summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/proxsmtpd.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ff151c3..469ea68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
0.6
- Added CLIENT and SERVER variables to VirusAction script environment.
- - Even better logging for network errors.
+ - Even better logging for network errors and filter warnings.
- Print out proxsmtp version in debug logs
- Allow configuration of server keep alives (NOOPs). Default to none
diff --git a/src/proxsmtpd.c b/src/proxsmtpd.c
index 348aadd..85da77b 100644
--- a/src/proxsmtpd.c
+++ b/src/proxsmtpd.c
@@ -856,8 +856,12 @@ static int wait_process(spctx_t* sp, pid_t pid, int* status)
case 0:
break;
case -1:
- sp_message(sp, LOG_CRIT, "error waiting on process");
- return -1;
+ if(errno != ECHILD || errno != ESRCH)
+ {
+ sp_message(sp, LOG_CRIT, "error waiting on process");
+ return -1;
+ }
+ /* fall through */
default:
return 0;
}