File Descriptors - How many?
Posted on 1998-07-17
I have a C++ program that is running on a unix machine. I need to find out exactly how many file descriptors I have left. I have a lot of socket connections opened and reading the output. I am running into problems with some of the file descriptors I get a "Bad File Number". I would like to exactly how many I have left. Any ideas?
Is there a way to find out how many file descriptors I have left for the entire system as well as how many per process?