Diff for /Amaya/amaya/query.c between versions 1.17 and 1.18

version 1.17, 1996/12/28 04:52:37 version 1.18, 1997/01/13 10:19:43
Line 83  static int          object_counter = 0; Line 83  static int          object_counter = 0;
 #include "AHTMemConv_f.h"  #include "AHTMemConv_f.h"
 #include "AHTFWrite_f.h"  #include "AHTFWrite_f.h"
   
 /*----------------------------------------------------------------------*/  
   
 #ifdef CATCH_SIG  
   
 /*----------------------------------------------------------------------  
   SetSignal  
   this function sets up signal handlers. This might not   
   be necessary to call if the application has its own handlers.      
   ----------------------------------------------------------------------*/  
 #ifdef __STDC__  
 static void         SetSignal (void)  
 #else  
 static void         SetSignal ()  
 #endif  
 {  
    /* On some systems (SYSV) it is necessary to catch the SIGPIPE signal  
       ** when attemting to connect to a remote host where you normally should  
       ** get `connection refused' back  
     */  
    if (signal (SIGPIPE, SIG_IGN) == SIG_ERR)  
      {  
         if (PROT_TRACE)  
            HTTrace ("HTSignal.... Can't catch SIGPIPE\n");  
      }  
    else  
      {  
         if (PROT_TRACE)  
            HTTrace ("HTSignal.... Ignoring SIGPIPE\n");  
      }  
 }  
 #endif /* CATCH_SIG */  
   
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
   GetDocIdStatus    GetDocIdStatus
Line 140  HTList             *documents; Line 108  HTList             *documents;
           {            {
              if (me->docid == docid)               if (me->docid == docid)
                 return (me);                  return (me);
           }                     /* while */            }
      }                          /* if */       }
    return (AHTDocId_Status *) NULL;     return (AHTDocId_Status *) NULL;
   
 }  }
Line 1024  void                QueryInit () Line 992  void                QueryInit ()
    Amaya->open_requests = 0;     Amaya->open_requests = 0;
   
 #ifdef CATCH_SIG  #ifdef CATCH_SIG
    SetSignal ();     signal (SIGPIPE, SIG_IGN);
 #endif  #endif
 }  }
   

Removed from v.1.17  
changed lines
  Added in v.1.18


Webmaster