diff options
author | Stef Walter <stef@memberwebs.com> | 2004-10-30 18:40:33 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-10-30 18:40:33 +0000 |
commit | 89848b2dce960a99a1638769669c006d89cd28d9 (patch) | |
tree | 3c84c0261bb8db7a0ffbc425c10ef1193cdb4005 /src/proxsmtpd.c | |
parent | 2278e316344f12c3091b4630a88eb5d7d2d1aef0 (diff) |
Supress errors when waiting for a process that's already gone.
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; } |