# HG changeset patch # User Igor Sysoev # Date 1233849710 0 # Node ID 693132294e215b0a0ed161e4c5ab06d0b2afc9e8 # Parent 1dd4576e7c89cf16b581374a88cdd5aeb00029c5 AIX has no WCOREDUMP() diff -r 1dd4576e7c89 -r 693132294e21 src/os/unix/ngx_process.c --- a/src/os/unix/ngx_process.c Thu Feb 05 15:47:12 2009 +0000 +++ b/src/os/unix/ngx_process.c Thu Feb 05 16:01:50 2009 +0000 @@ -494,10 +494,16 @@ } 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,