[LineControl-development] linesrv 2.1.15 leaks filedescriptors
Brought to you by:
sfuchs
|
From: Stefan G. <sg...@gm...> - 2005-03-03 16:49:59
|
Moin, just today I discovered why I cannot restart linesrv while my connection is up: # lsof -i -P -n | grep 16007 linesrv 18856 0 3u IPv4 46809507 TCP 192.168.0.30:16007 (LISTEN) linesrv 18856 0 4u IPv4 46809508 UDP 192.168.0.30:16007 linesrv 18856 0 7u IPv4 46809598 TCP SRV:16007->ME:36731 (ESTABLISHED) dhclient 18956 0 3u IPv4 46809507 TCP 192.168.0.30:16007 (LISTEN) dhclient 18956 0 4u IPv4 46809508 UDP 192.168.0.30:16007 dhclient 18956 0 7u IPv4 46809598 TCP SRV:16007->ME:36731 (ESTABLISHED) SRV == My server's ip ME == my workstation ip This looks a lot like linesrv is fork()ing for running up/down scripts without closing unneeded filedescriptors after the fork (the child should do so though). the config for the device is: line myline1 interface eth1 con_type netdev script_up /sbin/ifup eth1 script_dn /sbin/ifdown eth1 line_baud_up 2000000 line_baud_down 2000000 allow_manually yes script_esc /sbin/ifdown eth0 Would be nice if this could be fixed in case it's not fixed already. linesrv-2.1/server/NEWS doesn't mention such a change between 2.1.15 and 2.1.20 so I guess it's still there. Bye, Stefan aka mETz -- ICQ#51123152 | Moege der Pinguin mit euch sein |