[Bug 793] New: ulogd -d does not close all fds
bugzilla-daemon at bugzilla.netfilter.org
bugzilla-daemon at bugzilla.netfilter.org
Mon Jun 11 06:21:19 CEST 2012
http://bugzilla.netfilter.org/show_bug.cgi?id=793
Summary: ulogd -d does not close all fds
Product: ulogd
Version: SVN (please provide timestamp)
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ulogd
AssignedTo: netfilter-buglog at lists.netfilter.org
ReportedBy: joant at cloudant.com
Estimated Hours: 0.0
When calling the ulogd init script from another program (e.g. chef), any fds
being held open by the parent (other than stdin/out/err) are held open by
ulogd. In our environment, with flock being used to execute chef, ulogd holds
open the flock file /var/lock/chef-client.
The fix would be to ulogd.c, line 1222ff, something like:
// close any open file descriptors
for (i=getdtablesize();i>=0;--i)
close(i);
or, if POSIX compliance is desired, use sysconf(_SC_OPEN_MAX).
--
Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
More information about the netfilter-buglog
mailing list