Some hacks to get the FIFO communication work!! Isn't reliable.
[egate.git] / kernel / eti.c
index c36edd8..325e579 100644 (file)
@@ -2,7 +2,11 @@
  * Europagate, 1995
  *
  * $Log: eti.c,v $
- * Revision 1.6  1995/04/17 09:34:27  adam
+ * Revision 1.7  1995/04/19 16:01:57  adam
+ * Some hacks to get the FIFO communication work!! Isn't reliable.
+ * Resource gw.account added - default account info.
+ *
+ * Revision 1.6  1995/04/17  09:34:27  adam
  * Timeout (idletime) adjustable. Minor changes in kernel.
  *
  * Revision 1.5  1995/03/31  09:43:13  adam
@@ -185,13 +189,21 @@ int main (int argc, char **argv)
     signal (SIGPIPE, pipe_handle);
     setjmp (retry_jmp);
     ++pass;
+    signal (SIGPIPE, pipe_handle);
     gw_log (GW_LOG_DEBUG, module, "Pass %d", pass);
     if (pass == 1)
         r = gipc_open (gip, fifo_server_name, 0);
     else if (pass == 2)
     {
+#if 0
         gipc_close (gip);
+#endif
+        gipc_destroy (gip);
+        unlink (fifo_server_name);
+        unlink (fifo_client_name);
+        gip = gipc_initialize (fifo_client_name);
         start_kernel (argc, argv, id);
+       sleep (2);
         r = gipc_open (gip, fifo_server_name, 1);
     }
     else if (pass == 3)