Re: Open files leakage



On Tue, May 07, 2002 at 10:45:41PM +0400, Andrey Panov wrote:
> There is a files, that left opened after closing them in viewer.
> For example, press F3 on any file, that has association in mc.ext, then quit 
> viewer.
> File will left opened, as lsof shows it.
> 
> [root plutonia /]# lsof | grep 8150
> .....
> mc        8150  apx    0u   CHR      136,9                11 /dev/pts/9
> mc        8150  apx    1u   CHR      136,9                11 /dev/pts/9
> mc        8150  apx    2u   CHR      136,9                11 /dev/pts/9
> mc        8150  apx    3u   CHR        5,0             26531 /dev/tty
> mc        8150  apx    4u   CHR        5,2             23880 /dev/ptmx
> mc        8150  apx    5r   REG       33,8  234021    949806 
> /home/src/manpages-ru-0.7.tar.gz
> mc        8150  apx    6r  FIFO        0,6             88038 pipe
> mc        8150  apx    7w  FIFO        0,6             88038 pipe
> mc        8150  apx    8r   REG       33,8  234021    949806 
> /home/src/manpages-ru-0.7.tar.gz
> mc        8150  apx    9r   REG       33,8  234021    949806 
> /home/src/manpages-ru-0.7.tar.gz
> mc        8150  apx   10r   REG       33,8  234021    949806 
> /home/src/manpages-ru-0.7.tar.gz
> 
> Here i pressed F3 four times on manpages-ru-0.7.tar.gz 
> As you can see, it opens and never closes.

 [ What version of mc are you using? ]

 I couldn't reproduce this with 4.5.55 but the cvs version exhibits said
problem. After ~100 Views on src/regex.o I get:

 >> Internal error: No more virtual file handles <<

 I've looked around for a while. I think it might be due to recent
changes to view.c (vfs.c:mc_close() is never called) but haven't found
the bug yet. [I'll look some more tonight.]


-- 
//Björnen, bjorn @ bjornen . nu | http://bjornen.nu | |_).._. _ _  _ _ \\
( GPG: 3F1E41C8 5229D5F6 5D8E0149 659CDF06 8320510D | |_)|(_)| | )(-| ) )
\\            Mutt + Vim + Exim + Linux             |   /              //

Attachment: pgpTaw6bH9h60.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]