Re: fork/exec vs system
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: fork/exec vs system




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: fork/exec vs system  
Rainer Weikusat


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 12:19 PM

Casper H.S. Dik <Casper.Dik@Sun.COM> writes:
> Rainer Weikusat <rainer.weikusat@sncag.com> writes: 
> 
> 
>
> While simple, it may not do what you want and it may do it slowly.
>
> 	- If the descriptor limit is dropped, sysconf()
> 	  may return a number lower than the highest open descriptor

Using setrlimit that way is not portable behaviour for
UNIX(*)-systems, cf SUS, so, your statement should probably read that
'on certain versions of SunOS, namely ..., setrlimit could have been
used to limit the highest file descriptor available to the application
to one numerically smaller than the highest open file descriptor'.

> 	- sysconf() may return a ridicously large number; e.g.,
> 	  Solaris allows basically "MAXINT" file descriptors for
> 	  a process.  A few billion calls to close does cost quite a bit
> 	  of time.

That's an inherent problem of this approach.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register