comparison src/os/unix/ngx_process.c @ 372:6639b93e81b2 NGINX_0_6_30

nginx 0.6.30 *) Change: now if an "include" directive pattern does not match any file, then nginx does not issue an error. *) Feature: now the time in directives may be specified without spaces, for example, "1h50m". *) Bugfix: memory leaks if the "ssl_verify_client" directive was on. Thanks to Chavelle Vincent. *) Bugfix: the "sub_filter" directive might set text to change into output. *) Bugfix: the "error_page" directive did not take into account arguments in redirected URI. *) Bugfix: now nginx always opens files in binary mode under Cygwin. *) Bugfix: nginx could not be built on OpenBSD; bug appeared in 0.6.15.
author Igor Sysoev <http://sysoev.ru>
date Tue, 29 Apr 2008 00:00:00 +0400
parents 6eb1e38f0f1f
children 33394d1255b0
comparison
equal deleted inserted replaced
371:b6a2a305fdad 372:6639b93e81b2
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