comparison src/os/unix/ngx_process_cycle.c @ 448:241dc8092a33

nginx-0.1.0-2004-10-01-19:53:53 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 01 Oct 2004 15:53:53 +0000
parents 42d11f017717
children 3b1e8c9df9ad
comparison
equal deleted inserted replaced
447:288f249897e7 448:241dc8092a33
547 { 547 {
548 sigset_t set; 548 sigset_t set;
549 ngx_err_t err; 549 ngx_err_t err;
550 ngx_int_t n; 550 ngx_int_t n;
551 ngx_uint_t i; 551 ngx_uint_t i;
552 struct timeval tv;
552 ngx_listening_t *ls; 553 ngx_listening_t *ls;
553 ngx_core_conf_t *ccf; 554 ngx_core_conf_t *ccf;
554 ngx_connection_t *c; 555 ngx_connection_t *c;
556
557
558 ngx_gettimeofday(&tv);
559
560 ngx_start_msec = (ngx_epoch_msec_t) tv.tv_sec * 1000 + tv.tv_usec / 1000;
561 ngx_old_elapsed_msec = 0;
562 ngx_elapsed_msec = 0;
563
555 564
556 ngx_process = NGX_PROCESS_WORKER; 565 ngx_process = NGX_PROCESS_WORKER;
557 566
558 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 567 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
559 568