[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#713967: apache2-bin: daemon doesn't close all fds on fork - which causes postinst with debconf to hang



severity 713967 wishlist

thanks

 

Am Mittwoch, 3. Juli 2013, 14:37:40 schrieb Markus Frosch:

> Though in terms of closing fds when forking a daemon I'd like to

> point at the following tutorial:

> http://www.fifi.org/doc/debconf-doc/tutorial.html#AEN198

>

> [quote]

> Your postinst uses debconf and starts a daemon that doesn't close

> all inherited file descriptors (all such daemons are buggy,

> really). This makes debconf hang, because the debconf frontend

> waits for the daemon to close the fd's before continuing. Note that

> if you use confmodule, the program probably needs to close fd's 0,

> 1, 2, and 3.

> [/quote]

>

> This should be fixed in Apache2 IMHO, but I will implement db_stop

> as well.

 

I disagree with the above statement. There is no reasonable portable way to do that for httpd. But the calling process knows which FDs are open, so it should close them.

 


Reply to: