From: Maxim Dounin Date: Thu, 18 Oct 2012 14:48:33 +0000 (+0000) Subject: Removed conditional compilation from waitpid() error test. X-Git-Tag: release-1.3.8~7 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=106dbc8d76f6fdc626f61aaafddfdd18b159b8d5;p=nginx.git Removed conditional compilation from waitpid() error test. There are reports that call to a signal handler for an exited process despite waitpid() already called for the process may happen on Linux as well. --- diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c index 5713ca8e1..4ef3582e8 100644 --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -474,8 +474,6 @@ ngx_process_get_status(void) return; } -#if (NGX_SOLARIS || NGX_FREEBSD) - /* * Solaris always calls the signal handler for each exited process * despite waitpid() may be already called for this process. @@ -491,8 +489,6 @@ ngx_process_get_status(void) return; } -#endif - ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err, "waitpid() failed"); return;