Some hacks to get the FIFO communication work!! Isn't reliable.
[egate.git] / util / gips.c
index 8c92960..b5da5ef 100644 (file)
@@ -2,7 +2,10 @@
  * Europagate, 1995
  *
  * $Log: gips.c,v $
- * Revision 1.1  1995/03/27 08:25:00  adam
+ * Revision 1.2  1995/04/19 16:02:06  adam
+ * Some hacks to get the FIFO communication work!! Isn't reliable.
+ *
+ * Revision 1.1  1995/03/27  08:25:00  adam
  * New module gip: Gateway IPc module.
  * New module gw-db: Gateway hash-db module (user information table).
  *
@@ -15,6 +18,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 
+#include <gw-log.h>
 #include <gip.h>
 
 GIP gips_initialize (const char *name)
@@ -29,7 +33,9 @@ int gips_destroy (GIP gip)
 
 int gips_open (GIP gip, const char *client)
 {
+    gw_log (GW_LOG_DEBUG, "gips", "open writeonly of %s", client);
     gip->wfd = open (client, O_WRONLY);
+    gw_log (GW_LOG_DEBUG, "gips", "open readonly of %s", gip->name);
     gip->rfd = open (gip->name, O_RDONLY);
     if (gip->rfd == -1)
         return -1;