Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Linux Development & Programming => Topic started by: rheosiva on March 31, 2009, 12:06:54 PM

Title: How to find File Descriptors Leak using API calls
Post by: rheosiva on March 31, 2009, 12:06:54 PM
how to check file descriptors leak.. using a C program..
which Specific call is should be used to achieve this...
Please help me regards
Title: Re: How to find File Descriptors Leak using API calls
Post by: dragoncity99 on October 29, 2009, 04:05:41 PM
Errr...do you mean file locks ?

1. Use fuser or lsof to identify the processes holding it up.

2. If memory leak, use valgrind for example.

3. If you can suspect a process is the culprit, run an strace against that process.