comparison src/os/unix/ngx_process_cycle.c @ 3474:d4c4cfdffe30

*) use previously cached GMT offset value to update time from a signal handler *) change ngx_time_update() interface since there are no notification methods those return time
author Igor Sysoev <igor@sysoev.ru>
date Sat, 13 Mar 2010 18:08:07 +0000
parents f94e8ff65aa2
children ab353d7dc182
comparison
equal deleted inserted replaced
3473:0299cf5856fc 3474:d4c4cfdffe30
166 166
167 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "sigsuspend"); 167 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "sigsuspend");
168 168
169 sigsuspend(&set); 169 sigsuspend(&set);
170 170
171 ngx_time_update(0, 0); 171 ngx_time_update(0);
172 172
173 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 173 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
174 "wake up, sigio %i", sigio); 174 "wake up, sigio %i", sigio);
175 175
176 if (ngx_reap) { 176 if (ngx_reap) {
1340 if (path[i]->manager) { 1340 if (path[i]->manager) {
1341 n = path[i]->manager(path[i]->data); 1341 n = path[i]->manager(path[i]->data);
1342 1342
1343 next = (n <= next) ? n : next; 1343 next = (n <= next) ? n : next;
1344 1344
1345 ngx_time_update(0, 0); 1345 ngx_time_update(0);
1346 } 1346 }
1347 } 1347 }
1348 1348
1349 if (next == 0) { 1349 if (next == 0) {
1350 next = 1; 1350 next = 1;
1370 break; 1370 break;
1371 } 1371 }
1372 1372
1373 if (path[i]->loader) { 1373 if (path[i]->loader) {
1374 path[i]->loader(path[i]->data); 1374 path[i]->loader(path[i]->data);
1375 ngx_time_update(0, 0); 1375 ngx_time_update(0);
1376 } 1376 }
1377 } 1377 }
1378 1378
1379 exit(0); 1379 exit(0);
1380 } 1380 }