This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5
Jonathan Wakely wrote:
This sounds like an artificial limit:
254 + stdin + stdout + stderr = 257
i.e. fails when number of open file descriptors > 256
Were you in the same environment each time you ran the program?
Have you checked the value of "ulimit -n" ?
Yes Jonathan is right, maybe someone reduced the limit from the usual 1024.
By the way, depending on your shell, could be "limit" instead of "ulimit
-n".
Paolo.