]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rpc.lockd: Unconditionally close fds as daemon
authorCaleb St. John <yocalebo@gmail.com>
Fri, 26 Mar 2021 18:00:14 +0000 (14:00 -0400)
committerRyan Moeller <freqlabs@FreeBSD.org>
Fri, 26 Mar 2021 18:05:33 +0000 (14:05 -0400)
commitbadcfbacf3840a4097bb79192054481c7674e7d2
treeb72b8ac11b021b370aa1a78e0a0b348eb5ae1a70
parent0a7b99553f5c1e68868e3cbaccb3160eb1a7d1d6
rpc.lockd: Unconditionally close fds as daemon

When lockd is configured with a debug level of > 0 and foreground == 0,
the process is daemonized with a truth noclose argument to daemon().
This doesn't seem to be the desired behavior because that prevents
stdout and stderr from being closed, however, stdout and stderr aren't
used anywhere else. Furthermore, the man pages state that with a higher
debug level it will use the syslog facilities to do so.

Submitted by: Caleb St. John
Discussed with: rmacklem
MFC after: 3 days
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D29415
usr.sbin/rpc.lockd/lockd.c