[Bug 793] ulogd -d does not close all fds
bugzilla-daemon at bugzilla.netfilter.org
bugzilla-daemon at bugzilla.netfilter.org
Fri Jun 29 18:19:23 CEST 2012
http://bugzilla.netfilter.org/show_bug.cgi?id=793
--- Comment #3 from Pablo Neira Ayuso <pablo at netfilter.org> 2012-06-29 18:19:22 CEST ---
(In reply to comment #2)
> Why not? When you fork you should not be assuming any other fd is open, nor
> carrying it with you. Name one example of where you *don't* want to close a
> passed in fd. The code I pasted is from the daemonization of
the daemonization code for ulogd already closes descriptors 0, 1 and 2 if you
invoke it with -d.
> In our case, the call stream looks something like:
>
> cron
> \-> /usr/bin/flock --timeout 300 /var/lock/chef-client --command
> '/usr/bin/chef-client' >/dev/null 2>&1
> \-> Install /etc/ulogd.conf, contents below
> \-> /usr/sbin/invoke-rc.d ulogd start
> \-> (debian) start-stop-daemon --quiet --start -exec /usr/sbin/ulogd --
> -d
/usr/sbin/ulogd -- -d
Unless I'm missing anything, I think you have to remove that -- before -d,
otherwise, the -d parameter gets ignored.
/usr/sbin/ulogd -d
--
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.
You are watching someone on the CC list of the bug.
More information about the netfilter-buglog
mailing list