Mercurial > hg > nginx
comparison src/os/unix/ngx_process_cycle.c @ 6931:d45072375572
Style.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 07 Mar 2017 18:51:17 +0300 |
parents | 97c99bb43737 |
children | 8b84d60ef13d |
comparison
equal
deleted
inserted
replaced
6930:97c99bb43737 | 6931:d45072375572 |
---|---|
738 for ( ;; ) { | 738 for ( ;; ) { |
739 | 739 |
740 if (ngx_exiting) { | 740 if (ngx_exiting) { |
741 if (ngx_event_no_timers_left() == NGX_OK) { | 741 if (ngx_event_no_timers_left() == NGX_OK) { |
742 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "exiting"); | 742 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "exiting"); |
743 | |
744 ngx_worker_process_exit(cycle); | 743 ngx_worker_process_exit(cycle); |
745 } | 744 } |
746 } | 745 } |
747 | 746 |
748 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "worker cycle"); | 747 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "worker cycle"); |
749 | 748 |
750 ngx_process_events_and_timers(cycle); | 749 ngx_process_events_and_timers(cycle); |
751 | 750 |
752 if (ngx_terminate) { | 751 if (ngx_terminate) { |
753 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "exiting"); | 752 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "exiting"); |
754 | |
755 ngx_worker_process_exit(cycle); | 753 ngx_worker_process_exit(cycle); |
756 } | 754 } |
757 | 755 |
758 if (ngx_quit) { | 756 if (ngx_quit) { |
759 ngx_quit = 0; | 757 ngx_quit = 0; |