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.)
This commit is contained in:
Peter Wemm 1995-12-15 13:13:32 +00:00
parent 51cdbfcdaf
commit 09802b4a89
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12869
2 changed files with 2 additions and 0 deletions

View file

@ -657,5 +657,6 @@ setproctitle(a)
cp += strlen(cp);
while (cp < LastArg)
*cp++ = '\0';
Argv[1] = NULL;
}
#endif /* __FreeBSD__ */

View file

@ -657,5 +657,6 @@ setproctitle(a)
cp += strlen(cp);
while (cp < LastArg)
*cp++ = '\0';
Argv[1] = NULL;
}
#endif /* __FreeBSD__ */