Mercurial > hg > nginx
comparison src/os/unix/ngx_process_cycle.c @ 323:ba876b26b76d
nginx-0.0.3-2004-04-21-22:54:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 21 Apr 2004 18:54:33 +0000 |
parents | ab2f8c9a2a45 |
children | 8733703a37f3 |
comparison
equal
deleted
inserted
replaced
322:ab2f8c9a2a45 | 323:ba876b26b76d |
---|---|
492 ngx_destroy_pool(cycle->pool); | 492 ngx_destroy_pool(cycle->pool); |
493 exit(0); | 493 exit(0); |
494 } | 494 } |
495 | 495 |
496 if (ngx_quit) { | 496 if (ngx_quit) { |
497 ngx_quit = 0; | |
497 ngx_log_error(NGX_LOG_INFO, cycle->log, 0, | 498 ngx_log_error(NGX_LOG_INFO, cycle->log, 0, |
498 "gracefully shutting down"); | 499 "gracefully shutting down"); |
499 ngx_setproctitle("worker process is shutting down"); | 500 ngx_setproctitle("worker process is shutting down"); |
500 | 501 |
501 if (!exiting) { | 502 if (!exiting) { |
503 exiting = 1; | 504 exiting = 1; |
504 } | 505 } |
505 } | 506 } |
506 | 507 |
507 if (ngx_reopen) { | 508 if (ngx_reopen) { |
509 ngx_reopen = 0; | |
508 ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "reopen logs"); | 510 ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "reopen logs"); |
509 ngx_reopen_files(cycle, -1); | 511 ngx_reopen_files(cycle, -1); |
510 ngx_reopen = 0; | |
511 } | 512 } |
512 } | 513 } |
513 } | 514 } |
514 | 515 |
515 | 516 |