[iPAQ] File descriptors

From: Petr Nejedlý <P.Nejedly_at_sh.cvut.cz>
Date: Tue, 7 Jan 2003 01:32:19 +0100 (CET)

Hi all,

I have quite strange problem (H3100, gpe, 0.6):
Every application I run is left with many FDs open.
It seems innocent, but one application (stunnel) don't like
when it gets too high fd (uses the number as index to limited table
and cries if fd>16 (hardcoded)).

It seems it is caused by the applications in between that do exec
but don't set close-on-exec on their (forked) FDs.
Matchbox/mbdock seems to be the worst case as it keeps FDs for icons.

This is ls -l /proc/xx/fd of a shell in rxvt:
lrwx------ 1 root root 64 Jan 7 00:15 0 -> /dev/pts/0
lrwx------ 1 root root 64 Jan 7 00:15 1 -> /dev/pts/0
lr-x------ 1 root root 64 Jan 7 00:15 10 ->
/usr/share/matchbox/mbdock/down.xpm
lr-x------ 1 root root 64 Jan 7 00:15 11 ->
/usr/share/matchbox/mbdock/remove.xpm
lr-x------ 1 root root 64 Jan 7 00:15 12 ->
/usr/share/matchbox/mbdock/move.xpm
lr-x------ 1 root root 64 Jan 7 00:15 13 ->
/usr/share/matchbox/mbdock/gpe-kbd
lr-x------ 1 root root 64 Jan 7 00:15 14 ->
/usr/share/matchbox/mbdock/gpe-what
lr-x------ 1 root root 64 Jan 7 00:15 15 ->
/usr/share/matchbox/mbdock/stop.xpm
lr-x------ 1 root root 64 Jan 7 00:15 16 ->
/usr/share/matchbox/mbdock/xstroke
lr-x------ 1 root root 64 Jan 7 00:15 17 ->
/usr/share/matchbox/mbdock/miniapm
lr-x------ 1 root root 64 Jan 7 00:15 18 ->
/usr/share/matchbox/mbdock/minisys
lr-x------ 1 root root 64 Jan 7 00:15 19 ->
/usr/share/matchbox/mbdock/minivol
lrwx------ 1 root root 64 Jan 7 00:15 2 -> /dev/pts/0
lr-x------ 1 root root 64 Jan 7 00:15 20 ->
/usr/share/matchbox/mbdock/mbmenu
lr-x------ 1 root root 64 Jan 7 00:15 21 ->
/usr/share/matchbox/mbdock/minitime
lr-x------ 1 root root 64 Jan 7 00:15 22 ->
/usr/share/matchbox/mbdock/miniwave
lr-x------ 1 root root 64 Jan 7 00:15 23 ->
/usr/share/matchbox/mbdock/add.xpm
lr-x------ 1 root root 64 Jan 7 00:15 24 ->
/usr/share/matchbox/mbdock/mbmenu.xpm
lr-x------ 1 root root 64 Jan 7 00:15 25 ->
/usr/share/matchbox/mbdock/gpe-minicalc.dock
lr-x------ 1 root root 64 Jan 7 00:15 26 ->
/home/nenik/.mbdock
lr-x------ 1 root root 64 Jan 7 00:15 27 ->
/usr/X11R6/lib/X11/fonts/ttf/Andale_Mono.ttf
lr-x------ 1 root root 64 Jan 7 00:15 4 -> pipe:[441]
lr-x------ 1 root root 64 Jan 7 00:15 5 ->
/usr/X11R6/lib/X11/fonts/ttf/Verdana_Bold.ttf
lr-x------ 1 root root 64 Jan 7 00:15 6 -> pipe:[444]
l-wx------ 1 root root 64 Jan 7 00:15 7 -> pipe:[444]
lr-x------ 1 root root 64 Jan 7 00:15 8 ->
/usr/X11R6/lib/X11/fonts/ttf/Verdana_Bold.ttf
lr-x------ 1 root root 64 Jan 7 00:15 9 ->
/usr/share/matchbox/mbdock/xkbd.dockmenu

Is it a known problem? Is there any workaround?

Nenik
Received on Tue Jan 07 2003 - 00:33:31 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 18:33:21 EDT