HomeFreeBSD

MFC r343827:

Description

MFC r343827:

r342089 changed cap_syslog(3) to preserve the stdio descriptors inherited
from its parent so that LOG_PERROR would work. However, this caused
dhclient(8)'s stdio streams to remain open across daemonization, breaking
the ability to capture its foreground output as done in netconfig_ipv4.

Fix this by reverting r341692 and instead passing the parent's stderr
descriptor as an argument to cap_openlog() only when LOG_PERROR is specified
in logopt.

PR: 234514

Details

Provenance
jahAuthored on
Parents
rS344421: Direct commit to catch pc98 up to recent changes
Branches
Unknown
Tags
Unknown