Mercurial > hg > nginx-vendor-current
comparison src/os/unix/ngx_process_cycle.c @ 552:43e02819c5cf NGINX_0_8_28
nginx 0.8.28
*) Bugfix: nginx could not be built with the --without-pcre parameter;
the bug had appeared in 0.8.25.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 23 Nov 2009 00:00:00 +0300 |
parents | 40c366b3535c |
children | be4f34123024 |
comparison
equal
deleted
inserted
replaced
551:8af5b52635d0 | 552:43e02819c5cf |
---|---|
712 ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data) | 712 ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data) |
713 { | 713 { |
714 ngx_uint_t i; | 714 ngx_uint_t i; |
715 ngx_connection_t *c; | 715 ngx_connection_t *c; |
716 | 716 |
717 ngx_process = NGX_PROCESS_WORKER; | |
718 | |
717 ngx_worker_process_init(cycle, 1); | 719 ngx_worker_process_init(cycle, 1); |
718 | 720 |
719 ngx_setproctitle("worker process"); | 721 ngx_setproctitle("worker process"); |
720 | 722 |
721 #if (NGX_THREADS) | 723 #if (NGX_THREADS) |
826 ngx_int_t n; | 828 ngx_int_t n; |
827 ngx_uint_t i; | 829 ngx_uint_t i; |
828 struct rlimit rlmt; | 830 struct rlimit rlmt; |
829 ngx_core_conf_t *ccf; | 831 ngx_core_conf_t *ccf; |
830 ngx_listening_t *ls; | 832 ngx_listening_t *ls; |
831 | |
832 ngx_process = NGX_PROCESS_WORKER; | |
833 | 833 |
834 if (ngx_set_environment(cycle, NULL) == NULL) { | 834 if (ngx_set_environment(cycle, NULL) == NULL) { |
835 /* fatal */ | 835 /* fatal */ |
836 exit(2); | 836 exit(2); |
837 } | 837 } |
1287 void *ident[4]; | 1287 void *ident[4]; |
1288 ngx_event_t ev; | 1288 ngx_event_t ev; |
1289 | 1289 |
1290 cycle->connection_n = 512; | 1290 cycle->connection_n = 512; |
1291 | 1291 |
1292 ngx_process = NGX_PROCESS_HELPER; | |
1293 | |
1292 ngx_worker_process_init(cycle, 0); | 1294 ngx_worker_process_init(cycle, 0); |
1293 | 1295 |
1294 ngx_close_listening_sockets(cycle); | 1296 ngx_close_listening_sockets(cycle); |
1295 | 1297 |
1296 ngx_memzero(&ev, sizeof(ngx_event_t)); | 1298 ngx_memzero(&ev, sizeof(ngx_event_t)); |