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-24, 7:19 pm

Connie <yeconnie@gmail.com> wrote:
> I heard that PERL by deafult set close-on-exec for all descriptors except
> STDIN STDOUT and STDERR. If that is true,


Looks like that's the case, see p. 423ff in the Camel book (3rd ed.).
You seem to have to clear the close-on-exec flag to make sure the
file gets inherited by an exec()ed process (or diddle with the $^F
variable while opening the file).

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