PDA

View Full Version : what the kernel does if the FD is not closed?


rheosiva
1st April 2009, 20:30
please help me to understand regarding file descriptor leaks..
How to detect the file descriptor leak..

I tried with LSOF command. it shows list of opened files..
But i could nt able to identify whether LSOF list the Leaked File descriptors also..

I want to know what the kernel does when it detects file descriptor leaks...


Please help in this regards

tebokkel
19th April 2009, 22:25
FD's are closed when the owning process exits.

If you can lsof them, you know to which process they belong. Could you post a part of the lsof output with some entries you think are the problem?

Paul