Some hacks to get the FIFO communication work!! Isn't reliable.
[egate.git] / kernel / main.c
index 7926912..374ca49 100644 (file)
@@ -2,7 +2,11 @@
  * Europagate, 1995
  *
  * $Log: main.c,v $
- * Revision 1.18  1995/04/19 13:19:09  adam
+ * Revision 1.19  1995/04/19 16:01:58  adam
+ * Some hacks to get the FIFO communication work!! Isn't reliable.
+ * Resource gw.account added - default account info.
+ *
+ * Revision 1.18  1995/04/19  13:19:09  adam
  * New command: account - for authentication.
  *
  * Revision 1.17  1995/04/19  10:46:18  adam
@@ -103,6 +107,7 @@ static void kernel_events (struct str_queue *queue, int userid)
     gip = gips_initialize (fifo_server_name);
     gips_open (gip, fifo_client_name);
     gip_fd = gip_infileno (gip);
+    open (fifo_server_name, O_WRONLY);
 
     while (1)
     {
@@ -513,6 +518,7 @@ void read_kernel_res (void)
                  sizeof(info.hostname)-1);
         info.port = atoi (gw_res_get (info.kernel_res,
                                       "gw.portno", "210"));
+        strcpy (info.account, gw_res_get (info.kernel_res, "gw.account", ""));
     }
     if (info.databases)
         free (info.databases);