Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_process_cycle.c @ 3248:8c76116820f3 stable-0.7
merge r3024, r3025, r3028, r3033, r3034, r3035, r3036:
allow cross device temporary files atomic copying
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Oct 2009 17:32:17 +0000 |
parents | 1f3cd08ebb82 |
children | 88741ec7731a |
comparison
equal
deleted
inserted
replaced
3247:1f3cd08ebb82 | 3248:8c76116820f3 |
---|---|
279 void | 279 void |
280 ngx_single_process_cycle(ngx_cycle_t *cycle) | 280 ngx_single_process_cycle(ngx_cycle_t *cycle) |
281 { | 281 { |
282 ngx_uint_t i; | 282 ngx_uint_t i; |
283 | 283 |
284 ngx_init_temp_number(); | |
285 | |
286 for (i = 0; ngx_modules[i]; i++) { | 284 for (i = 0; ngx_modules[i]; i++) { |
287 if (ngx_modules[i]->init_process) { | 285 if (ngx_modules[i]->init_process) { |
288 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) { | 286 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) { |
289 /* fatal */ | 287 /* fatal */ |
290 exit(2); | 288 exit(2); |
931 if (sigprocmask(SIG_SETMASK, &set, NULL) == -1) { | 929 if (sigprocmask(SIG_SETMASK, &set, NULL) == -1) { |
932 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, | 930 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, |
933 "sigprocmask() failed"); | 931 "sigprocmask() failed"); |
934 } | 932 } |
935 | 933 |
936 ngx_init_temp_number(); | |
937 | |
938 /* | 934 /* |
939 * disable deleting previous events for the listening sockets because | 935 * disable deleting previous events for the listening sockets because |
940 * in the worker processes there are no events at all at this point | 936 * in the worker processes there are no events at all at this point |
941 */ | 937 */ |
942 ls = cycle->listening.elts; | 938 ls = cycle->listening.elts; |