comparison src/os/unix/ngx_process.c @ 2648:ccf282137109 stable-0.6

r2495 merge: AIX has no WCOREDUMP()
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 16:28:47 +0000
parents 957085b56da3
children ae81441e23f4
comparison
equal deleted inserted replaced
2647:76add0af8e21 2648:ccf282137109
492 break; 492 break;
493 } 493 }
494 } 494 }
495 495
496 if (WTERMSIG(status)) { 496 if (WTERMSIG(status)) {
497 #ifdef WCOREDUMP
497 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, 498 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
498 "%s %P exited on signal %d%s", 499 "%s %P exited on signal %d%s",
499 process, pid, WTERMSIG(status), 500 process, pid, WTERMSIG(status),
500 WCOREDUMP(status) ? " (core dumped)" : ""); 501 WCOREDUMP(status) ? " (core dumped)" : "");
502 #else
503 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
504 "%s %P exited on signal %d",
505 process, pid, WTERMSIG(status));
506 #endif
501 507
502 } else { 508 } else {
503 ngx_log_error(NGX_LOG_NOTICE, ngx_cycle->log, 0, 509 ngx_log_error(NGX_LOG_NOTICE, ngx_cycle->log, 0,
504 "%s %P exited with code %d", 510 "%s %P exited with code %d",
505 process, pid, WEXITSTATUS(status)); 511 process, pid, WEXITSTATUS(status));