FROM : Mark Dalrymple
DATE : Fri Oct 15 15:41:36 2004
> And yes, it is that same fd limit again. lsof reports I have 256 file
descriptors open.
> Now either I find a way to increase that on every system where my app
runs (10.2.8 and up)
You can raise the limit in your program to a system-defined maximum.
Check out the setrlimit() function, specifically the resource
RLIMIT_NOFILE The maximum number of open files for this process.
Setting it to RLIM_INFINITY should get you about 4K file descriptors.
Cheers,
++Mark Dalrymple, <email_removed>
http://borkware.com
DATE : Fri Oct 15 15:41:36 2004
> And yes, it is that same fd limit again. lsof reports I have 256 file
descriptors open.
> Now either I find a way to increase that on every system where my app
runs (10.2.8 and up)
You can raise the limit in your program to a system-defined maximum.
Check out the setrlimit() function, specifically the resource
RLIMIT_NOFILE The maximum number of open files for this process.
Setting it to RLIM_INFINITY should get you about 4K file descriptors.
Cheers,
++Mark Dalrymple, <email_removed>
http://borkware.com






Cocoa mail archive

