in reply to Re^2: Cleaning up filehandles and directoryhandles
in thread Cleaning up filehandles and directoryhandles
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).)
|
|---|