AIX has no WCOREDUMP()

This commit is contained in:
Igor Sysoev 2009-02-05 16:01:50 +00:00
parent f3d540a022
commit 9f751a8324

View File

@ -494,10 +494,16 @@ ngx_process_get_status(void)
} }
if (WTERMSIG(status)) { if (WTERMSIG(status)) {
#ifdef WCOREDUMP
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
"%s %P exited on signal %d%s", "%s %P exited on signal %d%s",
process, pid, WTERMSIG(status), process, pid, WTERMSIG(status),
WCOREDUMP(status) ? " (core dumped)" : ""); WCOREDUMP(status) ? " (core dumped)" : "");
#else
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
"%s %P exited on signal %d",
process, pid, WTERMSIG(status));
#endif
} else { } else {
ngx_log_error(NGX_LOG_NOTICE, ngx_cycle->log, 0, ngx_log_error(NGX_LOG_NOTICE, ngx_cycle->log, 0,