in reply to Re^3: Net::SFTP::Foreign Connection STDERR
in thread Net::SFTP::Foreign Connection STDERR

This may be operative system dependent.

In Linux, it seems that the dup2 system call behind the "open ... >&..." does not copy the close-on-exit flag, and so your proposed change is not required.

Which perl version and operative system are you using?

  • Comment on Re^4: Net::SFTP::Foreign Connection STDERR