On Sat, Aug 5, 2017, at 13:35, TJ Saunders wrote:
> I found out a bug in debian proftpd package:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870624
>
> I assume it's a bug in proftpd, since proftpd should close FDs when it's
> daemonising. Is this correct?
On 05.08.17 13:36, TJ Saunders wrote:
In that bug report, you say:
"after another attempt, it seems that proftpd process has FIFO open to
frontend, which prevents the frontend from finishing."
To what "frontend" are you referring? There's no mention of the
configuration being used, or any other details necessary for reproducing
the behavior locally. This could be a bug in the Debian packaging,
rather than in ProFTPD itself -- but we cannot say from the available
information.
It's the debian debconf script (pin 2182 in the bugreport), that configures
proftpd and executes init script. After init script is run, the frontend
waits, apparently because a proftpd's file descriptor 3 is open for writing
to a FIFO that the frontend has open for reading.
I am not sure whether the debconf frontend should close all file descriptors
when executing remote script, but I think proftpd should do that when
daemonising.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Developers List
<proftpd-de...@proftpd.org>
https://lists.sourceforge.net/lists/listinfo/proftp-devel