Updated for YAZ 1.7. HTML output tidy up. Added LOC target.
[egate.git] / kernel / main.c
index 7468074..aa00fce 100644 (file)
  * Europagate, 1995
  *
  * $Log: main.c,v $
- * Revision 1.29  1995/07/28 10:51:08  adam
+ * Revision 1.31  2001/02/26 14:32:36  adam
+ * Updated for YAZ 1.7. HTML output tidy up. Added LOC target.
+ *
+ * Revision 1.30  1996/02/12 10:04:54  adam
+ * The gateway doesn't try to reconnect if it is already known that
+ * it will fail (connect_fail flag introduced).
+ *
+ * Revision 1.29  1995/07/28  10:51:08  adam
  * Bug fix: account from previous session had effect when new target command
  * was executed.
  *
 #include <strqueue.h>
 #include "kernel.h"
 
-FILE *reply_fd = stdout;
+FILE *reply_fd;
 
 struct gw_kernel_info info;
 
@@ -176,6 +183,8 @@ static void kernel_events (struct str_queue *queue)
     int persist_flag;
     int stop_flag = 0;
 
+    reply_fd = stdout;
+
     persist_flag = gw_res_bool (info.kernel_res, "gw.persist", 0);
     timeout = gw_res_int (info.kernel_res, "gw.timeout", 600);
     gw_log (GW_LOG_DEBUG, KERNEL_LOG, "event loop");
@@ -285,6 +294,7 @@ int main (int argc, char **argv)
     info.database = NULL;
     info.setno = -1;
     info.userid = -1;
+    info.connect_failed = 0;
 #if USE_FML
     info.fml = NULL;
 #endif