mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
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.
This commit is contained in:
parent
27b7eb17d0
commit
106dbc8d76
@ -474,8 +474,6 @@ ngx_process_get_status(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (NGX_SOLARIS || NGX_FREEBSD)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Solaris always calls the signal handler for each exited process
|
* Solaris always calls the signal handler for each exited process
|
||||||
* despite waitpid() may be already called for this process.
|
* despite waitpid() may be already called for this process.
|
||||||
@ -491,8 +489,6 @@ ngx_process_get_status(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err,
|
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err,
|
||||||
"waitpid() failed");
|
"waitpid() failed");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user