Comment 3 for bug 544910

Revision history for this message
Philipp Kern (pkern) wrote : Re: [Bug 544910] Re: Upgrade to 10.04 beta1 blocked by aiccu

On Tue, Apr 27, 2010 at 11:13:41PM -0000, Marien Zwart wrote:
> As far as I can tell a reasonable way of fixing this is for aiccu to
> close all its fds when it daemonizes. Some googling indicates you're
> "supposed" to do that (see for example
> http://www.python.org/dev/peps/pep-3143/#correct-daemon-behaviour which
> refers to a book and a couple of implementations). Unfortunately
> upstream disagrees with me, and I'm not sure where else this could be
> fixed. Can the postinst script (which does not explicitly use this fd
> anywhere) reasonably close it somehow? Should invoke-rc.d close all fds?
> Should /etc/init.d/aiccu?
>
> I will attach the patch doing this in aiccu (the one rejected upstream)
> here. My ppa ( https://launchpad.net/~marienz/+archive/ppa ) has a build
> with this patch applied (and a lot of other stuff, so please do not
> blindly add the entire ppa to get past this bug!)

What about calling Debconf's db_stop? (This is implemented by sending
STOP to fd3.)

Kind regards,
Philipp Kern
--
 .''`. Philipp Kern Debian Developer
: :' : http://philkern.de Stable Release Manager
`. `' xmpp:phil@0x539.de Wanna-Build Admin
  `- finger <email address hidden>