From 89848b2dce960a99a1638769669c006d89cd28d9 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 30 Oct 2004 18:40:33 +0000 Subject: Supress errors when waiting for a process that's already gone. --- src/proxsmtpd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3