/[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.11 by nmav, Sun Oct 6 09:42:50 2002 UTC revision 1.12 by nmav, Wed Oct 9 08:49:46 2002 UTC
# Line 48  Line 48 
48  static int process_hic_request(hic_params*, hic_request * cmd);  static int process_hic_request(hic_params*, hic_request * cmd);
49  void hic_dequeue(hic_request ** head, hic_request * req);  void hic_dequeue(hic_request ** head, hic_request * req);
50  void hic_enqueue(hic_request ** head, hic_request * req);  void hic_enqueue(hic_request ** head, hic_request * req);
 int hic_sigchld_flag = 0; /* if we received a SIGCHLD signal, then this flag  
                         * is non zero */  
51    
52  void *hic_main_loop(void *_hic_params)  void *hic_main_loop(void *_hic_params)
53  {  {
54     hic_request* current, *next;     hic_request* current, *next;
55     hic_params *params = _hic_params;     hic_params *params = _hic_params;
56    
 #ifdef ENABLE_SMP  
     pthread_setcancelstate( PTHREAD_CANCEL_ENABLE, NULL);  
     pthread_setcanceltype( PTHREAD_CANCEL_ASYNCHRONOUS, NULL);  
 #endif  
   
57     while (1) {     while (1) {
58        for (current = params->request_head;current;current=next) {        for (current = params->request_head;current;current=next) {
59    
# Line 88  void *hic_main_loop(void *_hic_params) Line 81  void *hic_main_loop(void *_hic_params)
81    
82        if (params->sigchld_flag)        if (params->sigchld_flag)
83           sigchld_run();           sigchld_run();
84          if (params->sighup_flag)
85             sighup_run();
86                
87    
88     }     }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26