Bug 124167 - Konqueror doesn't release old file handles
Summary: Konqueror doesn't release old file handles
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-24 05:27 UTC by Bryan Elliott
Modified: 2010-09-05 18:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Elliott 2006-03-24 05:27:06 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Slackware Packages
OS:                Linux

While attempting to write an 'autounmount' daemon for K, I needed to look at the /proc/{PID}/fd of random applications.  I noticed that if you leave a directory in the file manager view of Konqy, it holds onto the file descriptor for that directory.

This has caused me problems in the past, I realize - A Konqy window that, historically, had ventured into a removable disc will almost always need to be closed to unmount the drive.

Quick test: go to a console and run 'konqueror &'  Grab the PID bash returns and go to /proc/{PID}/fd.

Now open a directory.  Do an ls -l and you'll see the directory as a file descriptor link. Rinse and repeat, and you'll see both folders, not just the current one.
Comment 1 Jaime Torres 2008-05-16 18:11:12 UTC
The only file handles opened are sockets, pipes and cache in trunk and 3.5.9
Comment 2 Jaime Torres 2008-05-17 09:33:01 UTC
Works for me in svn trunk r807691 (20080507)
Comment 3 FiNeX 2008-05-19 16:22:31 UTC
@Jaime: this is not true if you have preloaded istances of konqueror. In some cases you will not be able to umount. (tested on 3.5.9)
Comment 4 FiNeX 2008-05-19 16:23:07 UTC
This behaviour should be well checked on KDE 4.
Comment 5 Jaime Torres 2008-05-20 10:47:50 UTC
In fedora 9 (kde 4.0.3) with a preloaded konqueror, using lsof | grep kon
I see the following files in use:

cwd DIR /home/user
rtd DIR /
mem REG (a lot of libs in /lib and /usr/lib)
mem REG /usr/share/fonts/*
mem REG /var/cache/fontconfig/*
1w  REG /home/user/.xession-errors
2w  REG /home/user/.xession-errors
12u REG /var/tmp/kdecache-user/*
14u REG /tmp/kde-user/*
pipes and unix sockets (Where are the unix sockets created? in /tmp?)
Comment 6 Michael Leupold 2008-05-20 22:50:42 UTC
I can't reproduce the bug either on trunk r810280.
Comment 7 FiNeX 2010-09-05 18:01:02 UTC
This bug is no more valid with KDE 4.4