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

Diff of /hydra/src/hic.c

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

revision 1.2 by nmav, Fri Sep 27 21:24:37 2002 UTC revision 1.3 by nmav, Fri Sep 27 23:40:29 2002 UTC
# Line 54  void* hic_main_loop( void* cml) Line 54  void* hic_main_loop( void* cml)
54     hic_stuff cmd;     hic_stuff cmd;
55     int *command_line = cml; /* this is an int[2] */     int *command_line = cml; /* this is an int[2] */
56    
    _php_hic_init();  
   
57     FD_ZERO(&read_fdset);     FD_ZERO(&read_fdset);
58    
   
59     while (1) {     while (1) {
60    
61        time(&current_time);        time(&current_time);
# Line 111  void* hic_main_loop( void* cml) Line 108  void* hic_main_loop( void* cml)
108    
109  static int process_command(hic_stuff * cmd)  static int process_command(hic_stuff * cmd)
110  {  {
111     _php_hic_request( cmd);  hic_module_st * hst;
112    
113       hst = find_hic_appr_module( cmd->path_translated, 0);
114       if (hst == NULL) {
115          log_error_time();
116          fprintf(stderr, "Could not find HIC handler for '%s'\n", cmd->path_translated);
117          close( cmd->out_fd);
118          return 0;
119       }
120    
121       hst->request( cmd);
122     close( cmd->out_fd);     close( cmd->out_fd);
123    
124    /*
125     log_error_time();     log_error_time();
126     fprintf(stderr, "HIC status: %d wrote: %d\n", cmd->status, cmd->bytes_sent);     fprintf(stderr, "HIC status: %d wrote: %d\n", cmd->status, cmd->bytes_sent);
127     */
128    
129     return 0;     return 0;
130  }  }

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26