Comment 8 for bug 13371

Revision history for this message
Matthias Klose (doko) wrote : Re: Too many file opened at one

os.sysconf('SC_OPEN_MAX') gets you the value of the maximum allowed files. The
limits approach was to limit this change to the processes the user starts.
Another possibilty would be to keep the soft limit, but increase the hard limit,
so this value can be raised by the user by resource.setrlimit(...)

IMO it doesn't make sense if the interpreter tracks a record of all open files,
the number of files opened by extension modules and external libraries is
unknown to the interpreter and such tracking would be unreliable.