diff options
author | peter <peter@FreeBSD.org> | 1995-12-15 13:13:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-12-15 13:13:32 +0000 |
commit | 56f17dc307803aa97737b1029d4a1aeee01c31a3 (patch) | |
tree | 87c0ecf7ce891d95f2716af081000b59abcae981 /sbin/nfsd | |
parent | 80fdfc39b313c2bf3fe1767f032e904e0e560b1f (diff) | |
download | FreeBSD-src-56f17dc307803aa97737b1029d4a1aeee01c31a3.zip FreeBSD-src-56f17dc307803aa97737b1029d4a1aeee01c31a3.tar.gz |
The version of setproctitle() inside nfsd was busted. It was not terminating
the argv array, causing parts of the argv[0] to be picked up several times
by libkvm, causing strange ps results for the nfs-server and nfs-master
processes.. :-]
(How many copies of setproctitle() do we need anyway? NetBSD has it in
libc and BSDI have it in libutil.)
Diffstat (limited to 'sbin/nfsd')
-rw-r--r-- | sbin/nfsd/nfsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/nfsd/nfsd.c b/sbin/nfsd/nfsd.c index 8c8731d..3de2251 100644 --- a/sbin/nfsd/nfsd.c +++ b/sbin/nfsd/nfsd.c @@ -657,5 +657,6 @@ setproctitle(a) cp += strlen(cp); while (cp < LastArg) *cp++ = '\0'; + Argv[1] = NULL; } #endif /* __FreeBSD__ */ |