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
Rainer Weikusat

2007-01-25, 7:19 am

Rainer Weikusat <rainer.weikusat@sncag.com> writes:

[...]

> A better, but not universally portable solution, would be to close
> everything > 2 listed in /dev/fd (supported at least by Solaris and
> *BSD and indirectly by linux, through symlink /dev/fd ->
> /proc/self/fd).


Some additional information on this:

<URL:http://www.awprofessional.com/artic...&seqNum=15&rl=1>

So this should be supported on any actual UNIX(*) (or unix-like)
system one can reasonably expect to encounter today.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com