diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-01 16:28:47 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-01 16:28:47 +0000 |
commit | af2af8d2848b9ca81ebcd3b27932de46695a6a3b (patch) | |
tree | 4f4fbf287e9ba1b4f90541f3f3c14a3c75d33a59 | |
parent | e429f324e591c7dce1e23d308b981df5ea3156d4 (diff) | |
download | nginx-af2af8d2848b9ca81ebcd3b27932de46695a6a3b.tar.gz nginx-af2af8d2848b9ca81ebcd3b27932de46695a6a3b.zip |
r2495 merge:
AIX has no WCOREDUMP()
-rw-r--r-- | src/os/unix/ngx_process.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, |