* Europagate, 1995
*
* $Log: gip.c,v $
- * Revision 1.3 1995/04/20 15:12:42 adam
+ * Revision 1.4 1995/04/21 16:38:07 adam
+ * Added more debugging logs.
+ *
+ * Revision 1.3 1995/04/20 15:12:42 adam
* Minor hacks really.
*
* Revision 1.2 1995/03/27 12:52:18 adam
#include <sys/stat.h>
#include <errno.h>
+#include <gw-log.h>
+
#include <gip.h>
GIP gip_initialize (const char *name)
gip->ret = mknod (gip->name, S_IFIFO|0666, 0);
gip->errno = errno;
gip->rfd = gip->wfd = -1;
+ gw_log (GW_LOG_DEBUG, "gip", "Creating %s", gip->name);
return gip;
}
* Europagate, 1995
*
* $Log: gipc.c,v $
- * Revision 1.4 1995/04/20 15:12:45 adam
+ * Revision 1.5 1995/04/21 16:38:07 adam
+ * Added more debugging logs.
+ *
+ * Revision 1.4 1995/04/20 15:12:45 adam
* Minor hacks really.
*
* Revision 1.3 1995/04/19 16:02:06 adam
{
if (sync)
{
- gw_log (GW_LOG_DEBUG, "gipc", "Open readonly of %s", gip->name);
- gip->rfd = open (gip->name, O_RDONLY);
gw_log (GW_LOG_DEBUG, "gipc", "Open writeonly of %s", server);
gip->wfd = open (server, O_WRONLY);
+ gw_log (GW_LOG_DEBUG, "gipc", "Open readonly of %s", gip->name);
+ gip->rfd = open (gip->name, O_RDONLY);
}
else
{
- gip->wfd = open (server, O_WRONLY|O_NONBLOCK);
gip->rfd = open (gip->name, O_RDONLY|O_NONBLOCK);
+ gip->wfd = open (server, O_WRONLY|O_NONBLOCK);
}
if (gip->rfd == -1)
+ {
+ gw_log (GW_LOG_DEBUG, "gipc", "Cannot open %s", gip->name);
return -1;
+ }
if (gip->wfd == -1)
+ {
+ gw_log (GW_LOG_DEBUG, "gipc", "Cannot open %s", server);
return -2;
+ }
fcntl (gip->wfd, F_SETFL, 0);
fcntl (gip->rfd, F_SETFL, 0);
return 0;
* 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
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)