CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2010/08/12 15:49:44

Modified files:
        usr.bin/ssh    : ssh.c 

Log message:
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@

Reply via email to