summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-10-30 18:40:33 +0000
committerStef Walter <stef@memberwebs.com>2004-10-30 18:40:33 +0000
commit89848b2dce960a99a1638769669c006d89cd28d9 (patch)
tree3c84c0261bb8db7a0ffbc425c10ef1193cdb4005
parent2278e316344f12c3091b4630a88eb5d7d2d1aef0 (diff)
Supress errors when waiting for a process that's already gone.
-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;
}