aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-05 16:01:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-05 16:01:50 +0000
commit9f751a8324d6a241b33d76be65a1435a1f56f0d6 (patch)
tree7b3c6731a79825c4ff4d14f0af0c12c0e3a27574 /src/os/unix/ngx_process.c
parentf3d540a02229496c0e1007f0791964d9cb7586ed (diff)
downloadnginx-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.c6
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,