* Europagate, 1995
*
* $Log: gipc.c,v $
- * Revision 1.7 1995/05/16 09:40:52 adam
+ * Revision 1.8 1995/05/17 10:51:43 adam
+ * Bug fix.
+ *
+ * Revision 1.7 1995/05/16 09:40:52 adam
* LICENSE.
*
* Revision 1.6 1995/05/01 16:27:29 adam
gip->wfd = open (server, O_WRONLY);
gw_log (GW_LOG_DEBUG, "gipc", "got wfd %d", gip->wfd);
+ if (gip->wfd == -1)
+ {
+ gw_log (GW_LOG_DEBUG|GW_LOG_ERRNO, "gipc", "Cannot open %s",
+ server);
+ return -2;
+ }
gw_log (GW_LOG_DEBUG, "gipc", "Open sync readonly of %s", gip->name);
gip->rfd = open (gip->name, O_RDONLY);
gw_log (GW_LOG_DEBUG, "gipc", "got rfd %d", gip->rfd);
}
if (gip->rfd == -1)
{
- gw_log (GW_LOG_DEBUG, "gipc", "Cannot open %s", gip->name);
+ gw_log (GW_LOG_DEBUG|GW_LOG_ERRNO, "gipc", "Cannot open %s",
+ gip->name);
if (gip->wfd != -1)
{
close (gip->wfd);
}
if (gip->wfd == -1)
{
- gw_log (GW_LOG_DEBUG, "gipc", "Cannot open %s", server);
+ gw_log (GW_LOG_DEBUG|GW_LOG_ERRNO, "gipc", "Cannot open %s", server);
close (gip->rfd);
gip->rfd = -1;
return -2;