diff options
author | neilbrown <neilbrown> | 2003-08-04 04:25:54 +0000 |
---|---|---|
committer | neilbrown <neilbrown> | 2003-08-04 04:25:54 +0000 |
commit | e09fbc8933961a0a774217ef32d73da373ddc670 (patch) | |
tree | 4549a0208515316164325485ebb3cb583cd989ce /support/nfs/nfssvc.c | |
parent | 18fc7a86a2a1213762cc4107565903127efadafc (diff) | |
download | nfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.tar.gz nfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.tar.xz nfs-utils-e09fbc8933961a0a774217ef32d73da373ddc670.zip |
/proc/fs/nfsd as an alternate to /proc/fs/nfsd
Diffstat (limited to 'support/nfs/nfssvc.c')
-rw-r--r-- | support/nfs/nfssvc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/support/nfs/nfssvc.c b/support/nfs/nfssvc.c index dae16f7..67089be 100644 --- a/support/nfs/nfssvc.c +++ b/support/nfs/nfssvc.c @@ -19,7 +19,9 @@ nfssvc(int port, int nrservs) struct nfsctl_arg arg; int fd; - fd = open("/proc/fs/nfs/threads", O_WRONLY); + fd = open("/proc/fs/nfsd/threads", O_WRONLY); + if (fd < 0) + fd = open("/proc/fs/nfs/threads", O_WRONLY); if (fd >= 0) { /* 2.5+ kernel with nfsd filesystem mounted. * Just write the number in. |