Henrik Nordstrom writes:
>Duane Wessels wrote:
>
>> >> while((j=open("/dev/null", 0)) > 0) i=j;
>
>> why, whats wrong with it?
>
>Some systems have tremendous amounts of filedescriptors which will cause
>this operation to take quite a bit of time.
I'm happy to put some limit in the loop. 8192? 16384?
>Also it finds the soft limit
>at the time configure is run, rather than the upper limit of the system.
It should find the hard limit because we increase the soft limit
with setrlimit() if available.
I don't know about systems that don't have setrlimit().
Duane W.
Received on Tue Jul 29 2003 - 13:15:57 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:05 MST