diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-05 16:01:50 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-05 16:01:50 +0000 |
commit | 9f751a8324d6a241b33d76be65a1435a1f56f0d6 (patch) | |
tree | 7b3c6731a79825c4ff4d14f0af0c12c0e3a27574 /src/os/unix/ngx_process.c | |
parent | f3d540a02229496c0e1007f0791964d9cb7586ed (diff) | |
download | nginx-9f751a8324d6a241b33d76be65a1435a1f56f0d6.tar.gz nginx-9f751a8324d6a241b33d76be65a1435a1f56f0d6.zip |
AIX has no WCOREDUMP()
Diffstat (limited to 'src/os/unix/ngx_process.c')
-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, |