Added more debugging logs.
[egate.git] / util / gips.c
index ebc5abb..79eee64 100644 (file)
@@ -2,7 +2,10 @@
  * Europagate, 1995
  *
  * $Log: gips.c,v $
- * Revision 1.3  1995/04/20 15:12:46  adam
+ * Revision 1.4  1995/04/21 16:38:08  adam
+ * Added more debugging logs.
+ *
+ * Revision 1.3  1995/04/20  15:12:46  adam
  * Minor hacks really.
  *
  * Revision 1.2  1995/04/19  16:02:06  adam
@@ -36,10 +39,10 @@ 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);
+    gw_log (GW_LOG_DEBUG, "gips", "open writeonly of %s", client);
+    gip->wfd = open (client, O_WRONLY);
     if (gip->rfd == -1)
         return -1;
     if (gip->wfd == -1)