Mercurial > hg > nginx-quic
comparison src/core/nginx.c @ 270:7bb9562216ce
nginx-0.0.2-2004-02-25-23:16:15 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 25 Feb 2004 20:16:15 +0000 |
parents | 83205e0b5522 |
children | 0ba4821f4460 |
comparison
equal
deleted
inserted
replaced
269:f082cb6bcdd7 | 270:7bb9562216ce |
---|---|
144 ngx_cycle = &init_cycle; | 144 ngx_cycle = &init_cycle; |
145 | 145 |
146 ngx_memzero(&ctx, sizeof(ngx_master_ctx_t)); | 146 ngx_memzero(&ctx, sizeof(ngx_master_ctx_t)); |
147 ctx.argc = argc; | 147 ctx.argc = argc; |
148 ctx.argv = argv; | 148 ctx.argv = argv; |
149 | |
150 #if (NGX_THREADS) | |
151 if (ngx_time_mutex_init(log) == NGX_ERROR) { | |
152 return 1; | |
153 } | |
154 #endif | |
149 | 155 |
150 if (ngx_getopt(&ctx, &init_cycle) == NGX_ERROR) { | 156 if (ngx_getopt(&ctx, &init_cycle) == NGX_ERROR) { |
151 return 1; | 157 return 1; |
152 } | 158 } |
153 | 159 |
647 | 653 |
648 ngx_setproctitle("worker process"); | 654 ngx_setproctitle("worker process"); |
649 | 655 |
650 #if (NGX_THREADS) | 656 #if (NGX_THREADS) |
651 | 657 |
652 if (ngx_init_threads(5, 128 * 1024 * 1024, cycle->log) == NGX_ERROR) { | 658 if (ngx_init_threads(5, 128 * 1024 * 1024, cycle) == NGX_ERROR) { |
653 /* fatal */ | 659 /* fatal */ |
654 exit(1); | 660 exit(1); |
655 } | 661 } |
656 | 662 |
657 for (i = 0; i < 1; i++) { | 663 for (i = 0; i < 1; i++) { |