summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-01 16:28:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-01 16:28:47 +0000
commitaf2af8d2848b9ca81ebcd3b27932de46695a6a3b (patch)
tree4f4fbf287e9ba1b4f90541f3f3c14a3c75d33a59
parente429f324e591c7dce1e23d308b981df5ea3156d4 (diff)
downloadnginx-af2af8d2848b9ca81ebcd3b27932de46695a6a3b.tar.gz
r2495 merge:
AIX has no WCOREDUMP()
-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,