/[hydra]/hydra/src/select.c
ViewVC logotype

Diff of /hydra/src/select.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by nmav, Mon Sep 23 19:28:41 2002 UTC revision 1.4 by nmav, Thu Sep 26 13:46:42 2002 UTC
# Line 65  void* select_loop(void* _params) Line 65  void* select_loop(void* _params)
65           */           */
66          if (pthread_equal( params->tid, father_id)) {          if (pthread_equal( params->tid, father_id)) {
67  #endif  #endif
68               /* Calculate current time. Moved here, so only one thread
69                * calls this.
70                */
71               time(&current_time);
72    
73             if (params->sighup_flag)             if (params->sighup_flag)
74                 sighup_run();                 sighup_run();
75             if (params->sigalrm_flag)             if (params->sigalrm_flag)
# Line 118  void* select_loop(void* _params) Line 123  void* select_loop(void* _params)
123              }              }
124          }          }
125    
         time(&current_time);  
126          if (params->server_s[0].socket != -1 && FD_ISSET(params->server_s[0].socket, &params->block_read_fdset))          if (params->server_s[0].socket != -1 && FD_ISSET(params->server_s[0].socket, &params->block_read_fdset))
127              params->server_s[0].pending_requests = 1;              params->server_s[0].pending_requests = 1;
128  #ifdef ENABLE_SSL  #ifdef ENABLE_SSL

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26