]> 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>
Mon, 29 Mar 2021 13:33:35 +0000 (09:33 -0400)
commitaf68f5380642b3beb7be25cdacd73848f9c680e3
tree30c68d30a080574cca5cc7ec321da664f71b499c
parentb92b2ffd1233d9513dfcbb412c2bb578eef70e05
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

(cherry picked from commit badcfbacf3840a4097bb79192054481c7674e7d2)
usr.sbin/rpc.lockd/lockd.c