]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r286304:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Oct 2015 22:17:43 +0000 (22:17 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Oct 2015 22:17:43 +0000 (22:17 +0000)
commitf38dba28114346f0852fbdd0bb0feddaffb7ab5d
tree840e95a05039118b302aa33ec7bcd210f3b580f1
parent5facabcea704a3574eaa41d760008310e5b7bc99
MFC r286304:

Set f_file to -1/F_UNUSED when after closing when possible

This will help ensure we don't trash file descriptors that get used later on
in the daemon

Found via internal Coverity scan

Discussed with: cem, ed, markj
Differential Revision: https://reviews.freebsd.org/D3081
Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@289949 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/syslogd/syslogd.c