| Jens Thoms Toerring 2007-01-26, 7:20 am |
| Connie <yeconnie@gmail.com> wrote:
> The method I am using now is to go over the file descriptors and close
> them. But I got different open_max by using PERL and C. I got 1024 by
> using C and 10371 by using PERL on the same system. Does anyone has any
> idea?
How do you determine the upper limit in C and Perl? There are soft
and hard (per-process) limits and system-wide versus per-process
limits - are you sure you're asking for the same thing in C and Perl?
1024 looks like it could be the value for the per-process limit while
10371 might be the system-wide limit.
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
|