diff options
author | Fritz Elfert <felfert@to.com> | 1999-06-28 23:50:21 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 1999-06-28 23:50:21 +0000 |
commit | 7c9e56cea427fb98d84056482f801c4d5264f40e (patch) | |
tree | 62c4eef075e439eb1d2c3eb991b855dd7fb16aa0 /plpnfsd/mp_mount.c | |
parent | 34b70b0b46e34a73308a4034cc9b1c70209b9eb4 (diff) | |
download | plptools-7c9e56cea427fb98d84056482f801c4d5264f40e.tar.gz plptools-7c9e56cea427fb98d84056482f801c4d5264f40e.tar.bz2 plptools-7c9e56cea427fb98d84056482f801c4d5264f40e.zip |
More work.
Diffstat (limited to 'plpnfsd/mp_mount.c')
-rw-r--r-- | plpnfsd/mp_mount.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/plpnfsd/mp_mount.c b/plpnfsd/mp_mount.c index d13dea5..e58a3e0 100644 --- a/plpnfsd/mp_mount.c +++ b/plpnfsd/mp_mount.c @@ -14,7 +14,6 @@ extern int inet_addr(char *); #include <sys/stat.h> #include <sys/wait.h> - #ifdef __sgi #include <bstring.h> #endif @@ -94,7 +93,7 @@ extern int _rpc_dtablesize(); #include <sys/socket.h> #include <netdb.h> -#include "mp.h" +#include "rfsv_api.h" #ifdef __sgi #define vfork fork @@ -588,13 +587,22 @@ mount_and_run(char *dir, void (*proc)(), nfs_fh *root_fh) clean_cache(&attrcache); query_cache = 0; /* clear the GETDENTS "cache". */ } - ret = 1 /* FRITZ fd_is_still_alive(psionfd, 0) */ ; - if (isalive && !ret) { - if (debug) - printf("Disconnected...\n"); - } else if (!isalive && ret) { - if (debug) - printf("Connected...\n"); + ret = rfsv_isalive(); + if (isalive) { + if (!ret) { + if (debug) + printf("Disconnected...\n"); + rfsv_startup(); + } + } else { + if (ret) { + if (debug) + printf("Connected...\n"); + } else { + if (debug) + printf("Try connecting...\n"); + rfsv_startup(); + } } isalive = ret; } |