comparison src/os/unix/ngx_process_cycle.c @ 1133:d5c1c84b7904

style fix
author Igor Sysoev <igor@sysoev.ru>
date Tue, 06 Mar 2007 20:29:08 +0000
parents 4576627269ab
children 384c92c210f9
comparison
equal deleted inserted replaced
1132:4576627269ab 1133:d5c1c84b7904
677 #if (NGX_THREADS) 677 #if (NGX_THREADS)
678 678
679 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 679 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
680 680
681 if (ngx_threads_n) { 681 if (ngx_threads_n) {
682 if (ngx_init_threads(ngx_threads_n, 682 if (ngx_init_threads(ngx_threads_n, ccf->thread_stack_size, cycle)
683 ccf->thread_stack_size, cycle) == NGX_ERROR) 683 == NGX_ERROR)
684 { 684 {
685 /* fatal */ 685 /* fatal */
686 exit(2); 686 exit(2);
687 } 687 }
688 688
703 exit(2); 703 exit(2);
704 } 704 }
705 705
706 if (ngx_create_thread((ngx_tid_t *) &ngx_threads[n].tid, 706 if (ngx_create_thread((ngx_tid_t *) &ngx_threads[n].tid,
707 ngx_worker_thread_cycle, 707 ngx_worker_thread_cycle,
708 (void *) &ngx_threads[n], cycle->log) != 0) 708 (void *) &ngx_threads[n], cycle->log)
709 != 0)
709 { 710 {
710 /* fatal */ 711 /* fatal */
711 exit(2); 712 exit(2);
712 } 713 }
713 } 714 }
927 #if 0 928 #if 0
928 ngx_last_process = 0; 929 ngx_last_process = 0;
929 #endif 930 #endif
930 931
931 if (ngx_add_channel_event(cycle, ngx_channel, NGX_READ_EVENT, 932 if (ngx_add_channel_event(cycle, ngx_channel, NGX_READ_EVENT,
932 ngx_channel_handler) == NGX_ERROR) 933 ngx_channel_handler)
934 == NGX_ERROR)
933 { 935 {
934 /* fatal */ 936 /* fatal */
935 exit(2); 937 exit(2);
936 } 938 }
937 } 939 }