[Pkg-net-snmp-devel] Bug#453123: Bug#453123: debconf interaction not closed

Jochen Friedrich jochen at scram.de
Mon Nov 10 15:57:07 UTC 2008


forcemerge 391203 453123
thanks

Hi Ferenc,

> Of course not leaking file descriptors is a good practice, but it
> isn't the responsibility of all the daemons of the world to close all
> possible file descriptors their parent might have leaked to them (see
> for example http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=486826#37).

I don't agree here. It is common practice for daemons to close all file
handles (see http://www.enderunix.org/docs/eng/daemon.php for example).
The patch for 5.4.1 has been accepted by upstream and is included in 5.4.2.

> In my opinion the right fix would be issuing db_stop early in the
> postinst, before starting the daemons, and depending on that for
> closing the debconf file descriptors.  I didn't test if that actually
> happens, but it not, then that's a bug in debconf.

While this is true, i didn't find a clear statement if it's allowed to
call db_stop before #DEBHELPER# or not. And as upstream accepted the
patch for snmptrapd, i didn't see a reason to change the script just
to run into different problems with #DEBHELPER# later.

Thanks,
Jochen





More information about the Pkg-net-snmp-devel mailing list