]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: 229942, 231938
authorghelmer <ghelmer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 Apr 2012 21:10:30 +0000 (21:10 +0000)
committerghelmer <ghelmer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 Apr 2012 21:10:30 +0000 (21:10 +0000)
commitc70d2a7916b994f32666c4fef47f2e7e534f74be
treebfb692b1846e2c0153333c8c6b591ba9a9f479f9
parentb9267baa820405b631fb013fe96aa506812eb656
MFC: 229942, 231938

229942: Style fixes courtesy of pjd.

231938: Set the O_CLOEXEC flag when opening the pidfile to avoid leaking the
file descriptor via exec(3).

Now that daemon(8) has been fixed to resolve the issue noted by trociny,
the consensus is that this change should be OK.

git-svn-id: svn://svn.freebsd.org/base/stable/9@233856 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libutil/pidfile.3
lib/libutil/pidfile.c