1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/lib/libcasper
Jason A. Harmening f048354550 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
..
libcasper libcasper: do not run registered exit functions 2019-01-26 14:10:49 +00:00
services r341692 changed cap_syslog(3) to preserve the stdio descriptors inherited 2019-02-06 04:36:28 +00:00
tests TESTSDIR isn't required; remove it 2017-08-13 01:08:37 +00:00
Makefile Integrate the tests moved in r305626 in to the FreeBSD test suite 2017-08-13 01:04:44 +00:00
Makefile.inc Introduce caspermocks. 2017-10-28 19:23:57 +00:00