]> git.kaiwu.me - nginx.git/commitdiff
r2495 merge:
authorIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:28:47 +0000 (16:28 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:28:47 +0000 (16:28 +0000)
AIX has no WCOREDUMP()

src/os/unix/ngx_process.c

index ca3eae108b7d5c13de8cf2287957c5db5c18a13b..18b2601aff17895cc250e54621651d72aee09790 100644 (file)
@@ -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,