torsocks upgrade broke OpenSSH connection sharing

After upgrading torsocks, I found that OpenSSH connection sharing did not work correctly anymore. It turned out that the master process (when running using torsocks) keeps file descriptors open which it received from the slave processes.

It turned out that the fd passing check introduced in commit eecc1152a9c8645 is responsible for the issue.

Trac:
Username: zeuner

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information