From: Igor Sysoev Date: Wed, 1 Apr 2009 16:28:47 +0000 (+0000) Subject: r2495 merge: X-Git-Tag: release-0.6.36~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=af2af8d2848b9ca81ebcd3b27932de46695a6a3b;p=nginx.git r2495 merge: AIX has no WCOREDUMP() --- 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,