what the kernel does if the FD is not closed?

Discussion in 'Kernel Questions' started by rheosiva, Apr 1, 2009.

  1. rheosiva

    rheosiva New Member

    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
  2. tebokkel

    tebokkel New Member

    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?


Share This Page