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:
parent
51cdbfcdaf
commit
09802b4a89
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12869
@ -657,5 +657,6 @@ setproctitle(a)
|
||||
cp += strlen(cp);
|
||||
while (cp < LastArg)
|
||||
*cp++ = '\0';
|
||||
Argv[1] = NULL;
|
||||
}
|
||||
#endif /* __FreeBSD__ */
|
||||
|
@ -657,5 +657,6 @@ setproctitle(a)
|
||||
cp += strlen(cp);
|
||||
while (cp < LastArg)
|
||||
*cp++ = '\0';
|
||||
Argv[1] = NULL;
|
||||
}
|
||||
#endif /* __FreeBSD__ */
|
||||
|
Loading…
Reference in New Issue
Block a user