diff options
author | 2010-08-12 21:49:44 +0000 | |
---|---|---|
committer | 2010-08-12 21:49:44 +0000 | |
commit | a9ebba4f4575b97bcf3cf019ea613d00fdaf61c2 (patch) | |
tree | b088c84028d6f050b9f3f85a3fe1f4e245dbf577 /usr.bin/ssh/ssh-add.c | |
parent | if we ask for cleanup, always close the location. If it's not open, it's (diff) | |
download | wireguard-openbsd-a9ebba4f4575b97bcf3cf019ea613d00fdaf61c2.tar.xz wireguard-openbsd-a9ebba4f4575b97bcf3cf019ea613d00fdaf61c2.zip |
close any extra file descriptors inherited from parent at start and
reopen stdin/stdout to /dev/null when forking for ControlPersist.
prevents tools that fork and run a captive ssh for communication from
failing to exit when the ssh completes while they wait for these fds to
close. The inherited fds may persist arbitrarily long if a background
mux master has been started by ControlPersist. cvs and scp were effected
by this.
"please commit" markus@
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
0 files changed, 0 insertions, 0 deletions