Perl automatically sets the close-on-exec flag (if available on the system) for all descriptors above 2, so exec'd programs should never inherit them. (See $^F in perlvar, F_SETFD in fcntl(2).)
In reply to Re^3: Cleaning up filehandles and directoryhandles
by Bob9000
in thread Cleaning up filehandles and directoryhandles
by anthski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |