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?
In reply to Re^4: Net::SFTP::Foreign Connection STDERR
by salva
in thread Net::SFTP::Foreign Connection STDERR
by allyc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |