* Europagate, 1995
*
* $Log: gipc.c,v $
- * Revision 1.2 1995/03/28 08:03:46 adam
+ * Revision 1.3 1995/04/19 16:02:06 adam
+ * Some hacks to get the FIFO communication work!! Isn't reliable.
+ *
+ * Revision 1.2 1995/03/28 08:03:46 adam
* Non-blocking open used when sync is set.
*
* Revision 1.1 1995/03/27 08:24:59 adam
#include <unistd.h>
#include <fcntl.h>
+#include <gw-log.h>
#include <gip.h>
GIP gipc_initialize (const char *name)
{
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);
}
else
return -1;
if (gip->wfd == -1)
return -2;
- fcntl (gip->wfd, F_SETFL, ~(O_NONBLOCK|O_APPEND));
- fcntl (gip->rfd, F_SETFL, ~(O_NONBLOCK|O_APPEND));
+ fcntl (gip->wfd, F_SETFL, 0);
+ fcntl (gip->rfd, F_SETFL, 0);
return 0;
}
* 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).
*
#include <unistd.h>
#include <fcntl.h>
+#include <gw-log.h>
#include <gip.h>
GIP gips_initialize (const char *name)
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;