Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_process.c @ 3787:e294f37401c0
use copied strerror() messages and autoconfigured sys_nerr value
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Nov 2010 11:04:03 +0000 |
parents | 81677b7cdb2a |
children | 5364d2e711cc |
comparison
equal
deleted
inserted
replaced
3786:8a8eb335313d | 3787:e294f37401c0 |
---|---|
477 * erroneously call the signal handler for exited process | 477 * erroneously call the signal handler for exited process |
478 * despite waitpid() may be already called for this process. | 478 * despite waitpid() may be already called for this process. |
479 */ | 479 */ |
480 | 480 |
481 if (err == NGX_ECHILD) { | 481 if (err == NGX_ECHILD) { |
482 ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, 0, | 482 ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, err, |
483 "waitpid() failed (%d: %s)", | 483 "waitpid() failed"); |
484 err, ngx_sigsafe_strerror(err)); | |
485 return; | 484 return; |
486 } | 485 } |
487 | 486 |
488 #endif | 487 #endif |
489 | 488 |
490 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, | 489 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err, |
491 "waitpid() failed (%d: %s)", | 490 "waitpid() failed"); |
492 err, ngx_sigsafe_strerror(err)); | |
493 return; | 491 return; |
494 } | 492 } |
495 | 493 |
496 | 494 |
497 if (ngx_accept_mutex_ptr) { | 495 if (ngx_accept_mutex_ptr) { |