diff options
author | John Kohl <jtkohl@mit.edu> | 1987-11-20 07:32:27 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-11-20 07:32:27 +0000 |
commit | 047c84ecace726738885db3d072d7648866de85b (patch) | |
tree | 9dda6575c932aa82cd23a50442c52c1031744089 /server/main.c | |
parent | de6e3e97f89ec0232a6b55b5108726efd264d3b1 (diff) |
upgrade version number; check for srvtab before doing any work
Diffstat (limited to 'server/main.c')
-rw-r--r-- | server/main.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/server/main.c b/server/main.c index da85780..a6f6bbb 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.0"; +char version[] = "Zephyr Server (DEBUG) 2.05"; #else -char version[] = "Zephyr Server 2.0"; +char version[] = "Zephyr Server 2.05"; #endif DEBUG /* * Server loop for Zephyr. @@ -158,6 +158,21 @@ char **argv; } } + /* if there is no readable srvtab and we are not standalone, there + is no possible way we can succeed, so we exit */ + + if (access(ZEPHYR_SRVTAB, R_OK) +#ifdef DEBUG + && !zalone +#endif DEBUG + ) { + fprintf(stderr, "NO ZEPHYR SRVTAB available; exiting\n"); +#ifdef DEBUG + syslog(LOG_ERR, "NO ZEPHYR SRVTAB available; exiting\n"); +#endif DEBUG + exit(1); + } + #ifndef DEBUG detach(); /* open log */ |