When we perform a fork in Unix, open file handles are inherited, and if we don\'t need to use them we should close them. However, when we use libraries, file handles may be open
You can do from a shell:
lsof -P -n -p _PID_
Where PID is your process pid.