inetd fd leak?

Denys Vlasenko vda.linux at googlemail.com
Thu Sep 3 10:27:00 UTC 2009


On Thursday 03 September 2009 05:28, Denys Vlasenko wrote:
> > # procdump /proc/`pidof inetd`/fd
> > /proc/934/fd/0 -> /dev/null
> > /proc/934/fd/1 -> /dev/null
> > /proc/934/fd/2 -> /dev/null
> > /proc/934/fd/5 -> socket:[1455]
> > /proc/934/fd/6 -> socket:[1511]
> > /proc/934/fd/7 -> socket:[1597]
> > /proc/934/fd/8 -> socket:[1692]
> > /proc/934/fd/9 -> socket:[1738]
> > /proc/934/fd/10 -> socket:[1768]
> > /proc/934/fd/11 -> socket:[1796]
> > # ...
> 
> Just "ls -l /proc/`pidof inetd`/fd" works for me.
> 
> I tried to reproduce it but it seems to work.
> 
> However, you can be onto something since I see
> occasional segfaults in strace.

On the closer look, they seem to be a strace artifact.
Without strace they do not happen. I cannot reproduce it.
--
vda


More information about the busybox mailing list