jah 31147537ec r341692 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
Suggested by:	markj
Reported by:	Shawn Webb
Reviewed by:	markj, oshogbo
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D18989
2019-02-06 04:36:28 +00:00
..
2017-10-31 00:07:04 +00:00
2019-01-12 21:29:54 +00:00
2019-02-04 19:12:45 +00:00
2017-12-27 21:36:37 +00:00
2018-03-29 19:43:29 +00:00
2019-01-10 14:35:23 +00:00
2019-01-10 14:35:23 +00:00
2018-11-04 16:08:59 +00:00
2018-03-21 14:37:04 +00:00
2018-10-12 05:27:58 +00:00
2018-06-27 19:29:15 +00:00
2018-09-19 07:05:31 +00:00
2018-09-20 09:26:10 +00:00
2018-09-19 07:06:20 +00:00
2018-09-20 09:31:27 +00:00
2019-02-04 13:30:47 +00:00
2018-12-31 03:08:01 +00:00
2018-09-22 13:17:30 +00:00
2018-05-23 01:20:31 +00:00
2018-06-17 18:05:27 +00:00
2018-12-29 21:18:01 +00:00
2019-02-01 23:15:54 +00:00
2018-12-29 06:51:10 +00:00