comparison src/os/unix/ngx_process_cycle.c @ 3475:ab353d7dc182

*) introduce ngx_time_sigsafe_update() to update the error log time only *) change ngx_time_update() interface
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Mar 2010 09:10:10 +0000
parents d4c4cfdffe30
children 89002ac695e5
comparison
equal deleted inserted replaced
3474:d4c4cfdffe30 3475:ab353d7dc182
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); 171 ngx_time_update();
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); 1345 ngx_time_update();
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); 1375 ngx_time_update();
1376 } 1376 }
1377 } 1377 }
1378 1378
1379 exit(0); 1379 exit(0);
1380 } 1380 }