]> git.kaiwu.me - nginx.git/commitdiff
lower the log level of the waitpid() ENOCHILD error on FreeBSD
authorIgor Sysoev <igor@sysoev.ru>
Sat, 23 Dec 2006 15:05:26 +0000 (15:05 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 23 Dec 2006 15:05:26 +0000 (15:05 +0000)
src/os/unix/ngx_process.c

index a1454b6fd1c514d836f6fd27be9e50d4bac514bd..9bd78f78e4fa588e5622d9d5ecaeedac7eb64752 100644 (file)
@@ -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
              */