comparison src/os/unix/ngx_process.c @ 1963:957085b56da3

grammar fix
author Igor Sysoev <igor@sysoev.ru>
date Wed, 09 Apr 2008 19:09:13 +0000
parents cbe0292e53b3
children 693132294e21
comparison
equal deleted inserted replaced
1962:3091e5d770a6 1963:957085b56da3
450 * Solaris always calls the signal handler for each exited process 450 * Solaris always calls the signal handler for each exited process
451 * despite waitpid() may be already called for this process. 451 * despite waitpid() may be already called for this process.
452 * 452 *
453 * When several processes exit at the same time FreeBSD may 453 * When several processes exit at the same time FreeBSD may
454 * erroneously call the signal handler for exited process 454 * erroneously call the signal handler for exited process
455 * despite waitpid() may be already called for this process 455 * despite waitpid() may be already called for this process.
456 */ 456 */
457 457
458 if (err == NGX_ECHILD) { 458 if (err == NGX_ECHILD) {
459 ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, errno, 459 ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, errno,
460 "waitpid() failed"); 460 "waitpid() failed");
505 process, pid, WEXITSTATUS(status)); 505 process, pid, WEXITSTATUS(status));
506 } 506 }
507 507
508 if (WEXITSTATUS(status) == 2 && ngx_processes[i].respawn) { 508 if (WEXITSTATUS(status) == 2 && ngx_processes[i].respawn) {
509 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, 509 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
510 "%s %P exited with fatal code %d and could not respawn", 510 "%s %P exited with fatal code %d "
511 process, pid, WEXITSTATUS(status)); 511 "and can not be respawn",
512 process, pid, WEXITSTATUS(status));
512 ngx_processes[i].respawn = 0; 513 ngx_processes[i].respawn = 0;
513 } 514 }
514 } 515 }
515 } 516 }
516 517