File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5

Paolo Carlini pcarlini@suse.de
Mon Mar 29 20:19:00 GMT 2004


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.



More information about the Libstdc++ mailing list