]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r289949:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Oct 2015 22:19:11 +0000 (22:19 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Oct 2015 22:19:11 +0000 (22:19 +0000)
commitcf21c3bd3f0071eeb1eb872747181877ab6182aa
treed834fdfdceae1babb1b2bbf21cfb6e11940b69ed
parent31c057e95cf327d9fed3c5d3d29d2a41e899eb45
MFstable/10 r289949:

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/9@289950 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/syslogd/syslogd.c