Mercurial > hg > nginx-mail
comparison src/event/modules/ngx_rtsig_module.c @ 665:0b460e61bdcd default tip
Merge with nginx 1.0.0.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Apr 2011 04:22:17 +0400 |
parents | be4f34123024 |
children |
comparison
equal
deleted
inserted
replaced
572:06419a2298a9 | 665:0b460e61bdcd |
---|---|
321 | 321 |
322 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, err, | 322 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, err, |
323 "rtsig signo:%d", signo); | 323 "rtsig signo:%d", signo); |
324 | 324 |
325 if (flags & NGX_UPDATE_TIME) { | 325 if (flags & NGX_UPDATE_TIME) { |
326 ngx_time_update(0, 0); | 326 ngx_time_update(); |
327 } | 327 } |
328 | 328 |
329 if (err == NGX_EAGAIN) { | 329 if (err == NGX_EAGAIN) { |
330 | 330 |
331 /* timeout */ | 331 /* timeout */ |
347 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, | 347 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, |
348 "rtsig signo:%d fd:%d band:%04Xd", | 348 "rtsig signo:%d fd:%d band:%04Xd", |
349 signo, si.si_fd, si.si_band); | 349 signo, si.si_fd, si.si_band); |
350 | 350 |
351 if (flags & NGX_UPDATE_TIME) { | 351 if (flags & NGX_UPDATE_TIME) { |
352 ngx_time_update(0, 0); | 352 ngx_time_update(); |
353 } | 353 } |
354 | 354 |
355 rtscf = ngx_event_get_conf(ngx_cycle->conf_ctx, ngx_rtsig_module); | 355 rtscf = ngx_event_get_conf(ngx_cycle->conf_ctx, ngx_rtsig_module); |
356 | 356 |
357 if (signo == (int) rtscf->signo || signo == (int) rtscf->signo + 1) { | 357 if (signo == (int) rtscf->signo || signo == (int) rtscf->signo + 1) { |
417 | 417 |
418 return NGX_OK; | 418 return NGX_OK; |
419 | 419 |
420 } else if (signo == SIGALRM) { | 420 } else if (signo == SIGALRM) { |
421 | 421 |
422 ngx_time_update(0, 0); | 422 ngx_time_update(); |
423 | 423 |
424 return NGX_OK; | 424 return NGX_OK; |
425 | 425 |
426 } else if (signo == SIGIO) { | 426 } else if (signo == SIGIO) { |
427 | 427 |
669 tested = 0; | 669 tested = 0; |
670 } | 670 } |
671 } | 671 } |
672 | 672 |
673 if (flags & NGX_UPDATE_TIME) { | 673 if (flags & NGX_UPDATE_TIME) { |
674 ngx_time_update(0, 0); | 674 ngx_time_update(); |
675 } | 675 } |
676 | 676 |
677 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, | 677 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, |
678 "rt signal queue overflow recovered"); | 678 "rt signal queue overflow recovered"); |
679 | 679 |