Unix Programming - Re: fork/exec vs system

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2007 > Re: fork/exec vs system





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: fork/exec vs system
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com