comparison src/os/unix/ngx_process_cycle.c @ 516:7efcdb937752 NGINX_0_8_10

nginx 0.8.10 *) Bugfix: memory leaks if GeoIP City database was used. *) Bugfix: in copying temporary files to permanent storage area; the bug had appeared in 0.8.9.
author Igor Sysoev <http://sysoev.ru>
date Mon, 24 Aug 2009 00:00:00 +0400
parents 43cc6f0b77ce
children 86dad910eeb6
comparison
equal deleted inserted replaced
515:607556aed0a1 516:7efcdb937752
275 void 275 void
276 ngx_single_process_cycle(ngx_cycle_t *cycle) 276 ngx_single_process_cycle(ngx_cycle_t *cycle)
277 { 277 {
278 ngx_uint_t i; 278 ngx_uint_t i;
279 279
280 ngx_init_temp_number();
281
282 for (i = 0; ngx_modules[i]; i++) { 280 for (i = 0; ngx_modules[i]; i++) {
283 if (ngx_modules[i]->init_process) { 281 if (ngx_modules[i]->init_process) {
284 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) { 282 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
285 /* fatal */ 283 /* fatal */
286 exit(2); 284 exit(2);
928 if (sigprocmask(SIG_SETMASK, &set, NULL) == -1) { 926 if (sigprocmask(SIG_SETMASK, &set, NULL) == -1) {
929 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, 927 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
930 "sigprocmask() failed"); 928 "sigprocmask() failed");
931 } 929 }
932 930
933 ngx_init_temp_number();
934
935 /* 931 /*
936 * disable deleting previous events for the listening sockets because 932 * disable deleting previous events for the listening sockets because
937 * in the worker processes there are no events at all at this point 933 * in the worker processes there are no events at all at this point
938 */ 934 */
939 ls = cycle->listening.elts; 935 ls = cycle->listening.elts;