I'm getting errors due to "too many open files":
Couldn't get hostname: open /proc/sys/kernel/hostname: too many open files
What tools/techniques could I use to track this down? I've
got deferred closes on the two locations in my program where I open files,
so I'm thinking it's in one of the third party libraries I'm using.
Doing a count on the number of file descriptors shows a definite problem:
% while [ 1 ] ; do
ls /proc/9787/fd | wc -l ; sleep 1