# HG changeset patch # User Igor Sysoev # Date 1166886326 0 # Node ID cbe0292e53b383ebc26d7eaa7f9ef934cf4a8c26 # Parent 7ddc5345fb4f1d39ccf1900c02f26b2fcfffc524 lower the log level of the waitpid() ENOCHILD error on FreeBSD diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -444,10 +444,14 @@ ngx_process_get_status(void) return; } -#if (NGX_SOLARIS) +#if (NGX_SOLARIS || NGX_FREEBSD) /* * Solaris always calls the signal handler for each exited process + * despite waitpid() may be already called for this process. + * + * When several processes exit at the same time FreeBSD may + * erroneously call the signal handler for exited process * despite waitpid() may be already called for this process */