projects
/
egate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New log level in use: GW_LOG_ERRNO.
[egate.git]
/
kernel
/
eti.c
diff --git
a/kernel/eti.c
b/kernel/eti.c
index
f901a10
..
183f0e3
100644
(file)
--- a/
kernel/eti.c
+++ b/
kernel/eti.c
@@
-2,7
+2,10
@@
* Europagate, 1995
*
* $Log: eti.c,v $
* Europagate, 1995
*
* $Log: eti.c,v $
- * Revision 1.1 1995/03/27 08:24:00 adam
+ * Revision 1.2 1995/03/27 12:51:05 adam
+ * New log level in use: GW_LOG_ERRNO.
+ *
+ * Revision 1.1 1995/03/27 08:24:00 adam
* First use of gip interface and gw-db.
* First work on eti program.
*
* First use of gip interface and gw-db.
* First work on eti program.
*
@@
-124,7
+127,7
@@
int main (int argc, char **argv)
argv_p = malloc (sizeof(*argv_p)*(argc+2));
if (!argv_p)
{
argv_p = malloc (sizeof(*argv_p)*(argc+2));
if (!argv_p)
{
- gw_log (GW_LOG_FATAL, module, "Malloc fail");
+ gw_log (GW_LOG_FATAL|GW_LOG_ERRNO, module, "Malloc fail");
exit (1);
}
argv_p[0] = "kernel";
exit (1);
}
argv_p[0] = "kernel";
@@
-138,13
+141,13
@@
int main (int argc, char **argv)
pid = fork ();
if (pid == -1)
{
pid = fork ();
if (pid == -1)
{
- gw_log (GW_LOG_FATAL, module, "fork");
+ gw_log (GW_LOG_FATAL|GW_LOG_ERRNO, module, "fork");
exit (1);
}
if (!pid)
{
execvp ("kernel", argv_p);
exit (1);
}
if (!pid)
{
execvp ("kernel", argv_p);
- gw_log (GW_LOG_FATAL, module, "execvp");
+ gw_log (GW_LOG_FATAL|GW_LOG_ERRNO, module, "execvp");
exit (1);
}
gipc_open (gip, fifo_server_name, 1);
exit (1);
}
gipc_open (gip, fifo_server_name, 1);