* Europagate, 1995
*
* $Log: eti.c,v $
- * Revision 1.7 1995/04/19 16:01:57 adam
+ * Revision 1.8 1995/04/20 15:12:24 adam
+ * Minor hacks really.
+ *
+ * Revision 1.7 1995/04/19 16:01:57 adam
* Some hacks to get the FIFO communication work!! Isn't reliable.
* Resource gw.account added - default account info.
*
}
if (!pid)
{
- execvp ("kernel", argv_p);
+ execv ("kernel", argv_p);
gw_log (GW_LOG_FATAL|GW_LOG_ERRNO, module, "execvp");
exit (1);
}
r = gipc_open (gip, fifo_server_name, 0);
else if (pass == 2)
{
-#if 0
gipc_close (gip);
-#endif
gipc_destroy (gip);
unlink (fifo_server_name);
unlink (fifo_client_name);
gip = gipc_initialize (fifo_client_name);
start_kernel (argc, argv, id);
- sleep (2);
r = gipc_open (gip, fifo_server_name, 1);
}
else if (pass == 3)
* Europagate, 1995
*
* $Log: gip.c,v $
- * Revision 1.2 1995/03/27 12:52:18 adam
+ * Revision 1.3 1995/04/20 15:12:42 adam
+ * Minor hacks really.
+ *
+ * Revision 1.2 1995/03/27 12:52:18 adam
* A little more verbose in marc dump.
*
* Revision 1.1 1995/03/27 08:24:58 adam
strcpy (gip->name, name);
gip->ret = mknod (gip->name, S_IFIFO|0666, 0);
gip->errno = errno;
+ gip->rfd = gip->wfd = -1;
return gip;
}
* Europagate, 1995
*
* $Log: gipc.c,v $
- * Revision 1.3 1995/04/19 16:02:06 adam
+ * Revision 1.4 1995/04/20 15:12:45 adam
+ * Minor hacks really.
+ *
+ * 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
int gipc_close (GIP gip)
{
if (gip->rfd != -1)
+ {
close (gip->rfd);
+ gip->rfd = -1;
+ }
if (gip->wfd != -1)
+ {
close (gip->wfd);
+ gip->wfd = -1;
+ }
return 0;
}
* Europagate, 1995
*
* $Log: gips.c,v $
- * Revision 1.2 1995/04/19 16:02:06 adam
+ * Revision 1.3 1995/04/20 15:12:46 adam
+ * Minor hacks really.
+ *
+ * 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
int gips_close (GIP gip)
{
- close (gip->rfd);
- close (gip->wfd);
+ if (gip->rfd != -1)
+ {
+ close (gip->rfd);
+ gip->rfd = -1;
+ }
+ if (gip->wfd != -1)
+ {
+ close (gip->wfd);
+ gip->wfd = -1;
+ }
return 0;
}