Updated for YAZ 1.7. HTML output tidy up. Added LOC target.
[egate.git] / kernel / main.c
index f1f1694..aa00fce 100644 (file)
@@ -45,6 +45,9 @@
  * Europagate, 1995
  *
  * $Log: main.c,v $
+ * 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).
 #include <strqueue.h>
 #include "kernel.h"
 
-FILE *reply_fd = stdout;
+FILE *reply_fd;
 
 struct gw_kernel_info info;
 
@@ -180,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");