summaryrefslogtreecommitdiff
path: root/server/main.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1987-12-18 10:32:38 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1987-12-18 10:32:38 +0000
commit2de7307617051c2189f4761dba42002c7dedf41b (patch)
treec6e9f6c4febea18c120f3a8de0a76d4dbf749730 /server/main.c
parentfdc5d0041e8c74a8eb4bfe8fe04e8497b38f127f (diff)
Version 2.4
lint fix for struct iovec chdir to /usr/tmp
Diffstat (limited to 'server/main.c')
-rw-r--r--server/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/server/main.c b/server/main.c
index affc364..3d508a4 100644
--- a/server/main.c
+++ b/server/main.c
@@ -20,9 +20,9 @@ char copyright[] = "Copyright (c) 1987 Massachusetts Institute of Technology.\nP
#endif SABER
#endif lint
#ifdef DEBUG
-char version[] = "Zephyr Server (DEBUG) 2.3";
+char version[] = "Zephyr Server (DEBUG) 2.4";
#else
-char version[] = "Zephyr Server 2.3";
+char version[] = "Zephyr Server 2.4";
#endif DEBUG
/*
* Server loop for Zephyr.
@@ -67,6 +67,9 @@ char version[] = "Zephyr Server 2.3";
#include <netdb.h>
#include <sys/socket.h>
+#ifdef lint
+#include <sys/uio.h>
+#endif lint
#include <sys/param.h>
#include <sys/ioctl.h>
#include <signal.h>
@@ -188,6 +191,10 @@ char **argv;
if (initialize())
exit(1);
+ /* chdir to somewhere where a core dump will survive */
+ if (chdir("/usr/tmp") != 0)
+ syslog(LOG_ERR,"chdir failed (%m) (execution continuing)");
+
FD_ZERO(&interesting);
FD_SET(srv_socket, &interesting);