[Pkg-sympa-devel] Bug#499951: sympa: keeps open file descriptors for the terminal

Emmanuel Bouthenot kolter at openics.org
Sun May 29 18:36:35 UTC 2011


Hi Nicolas,

On Tue, Sep 23, 2008 at 10:08:55PM +0000, Nicolas Boullis wrote:
[...]

> When sympa is running as a daemon, it keeps open file descriptors for 
> the terminal. 
> 
> root at irma:/# lsof -a -c sympa.pl -c archived.pl -c task_manager.pl -c bounced.pl +D /dev/pts
> COMMAND    PID  USER   FD   TYPE DEVICE SIZE NODE NAME
> archived. 8906 sympa    0u   CHR  136,1         3 /dev/pts/1
> task_mana 8923 sympa    0u   CHR  136,1         3 /dev/pts/1
> bounced.p 8933 sympa    0u   CHR  136,1         3 /dev/pts/1
Your bug seems to be unreproducible on recent versions of Sympa (here 6.1.3):

--8<----------------------------------------------
# lsof -a -c sympa.pl -c archived.pl -c task_manager.pl -c bounced.pl -c bulk.pl +D /dev/
COMMAND    PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
sympa.pl  6902 sympa    0w   CHR    1,3      0t0  761 /dev/null
sympa.pl  6902 sympa    1w   CHR    1,3      0t0  761 /dev/null
bulk.pl   6914 sympa    1w   CHR    1,3      0t0  761 /dev/null
archived. 6925 sympa    1w   CHR    1,3      0t0  761 /dev/null
task_mana 6935 sympa    1w   CHR    1,3      0t0  761 /dev/null
bounced.p 6946 sympa    1w   CHR    1,3      0t0  761 /dev/null
--------------------------------------------->8---

But I can't reproduce it even with a version closer from yours (here 5.3.4-6.1):

--8<----------------------------------------------
# lsof -a -c sympa.pl -c archived.pl -c task_manager.pl -c bounced.pl +D /dev/
COMMAND    PID  USER   FD   TYPE DEVICE SIZE NODE NAME
sympa.pl  4974 sympa    0w   CHR    1,3       565 /dev/null
sympa.pl  4974 sympa    1w   CHR    1,3       565 /dev/null
archived. 4985 sympa    1w   CHR    1,3       565 /dev/null
task_mana 4994 sympa    1w   CHR    1,3       565 /dev/null
bounced.p 5003 sympa    1w   CHR    1,3       565 /dev/null
--------------------------------------------->8---

> It's not very annoying when the daemon is run on startup by init. But 
> when it is run over a SSH session, then the SSH session will not close 
> gracefully, which is quite annoying.
[...]
I think that it is an old bug bug which has probably been fixed a long time ago
but I will be glad to get your opinion before closing it.

Regards,

M.

-- 
Emmanuel Bouthenot
  mail: kolter@{openics,debian}.org    gpg: 4096R/0x929D42C3
  xmpp: kolter at im.openics.org          irc: kolter@{freenode,oftc}






More information about the Pkg-sympa-devel mailing list