From 9f751a8324d6a241b33d76be65a1435a1f56f0d6 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 5 Feb 2009 16:01:50 +0000 Subject: [PATCH] AIX has no WCOREDUMP() --- src/os/unix/ngx_process.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c index ca3eae108..18b2601af 100644 --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -494,10 +494,16 @@ ngx_process_get_status(void) } if (WTERMSIG(status)) { +#ifdef WCOREDUMP ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "%s %P exited on signal %d%s", process, pid, WTERMSIG(status), 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 { ngx_log_error(NGX_LOG_NOTICE, ngx_cycle->log, 0,