diff options
Diffstat (limited to 'src/proxsmtpd.c')
-rw-r--r-- | src/proxsmtpd.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |