diff options
author | John Kohl <jtkohl@mit.edu> | 1987-12-18 10:32:38 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-12-18 10:32:38 +0000 |
commit | 2de7307617051c2189f4761dba42002c7dedf41b (patch) | |
tree | c6e9f6c4febea18c120f3a8de0a76d4dbf749730 | |
parent | fdc5d0041e8c74a8eb4bfe8fe04e8497b38f127f (diff) |
Version 2.4
lint fix for struct iovec
chdir to /usr/tmp
-rw-r--r-- | server/main.c | 11 |
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); |