sftp client

Damien Miller djm at mindrot.org
Mon Feb 26 20:46:26 EST 2001


On Fri, 23 Feb 2001 mouring at etoh.eviladmin.org wrote:

>
> > I have now further investigated the problem and found a solution to
> > avoid the sftp-server hanging around.
> >
> > The OpenSSH sftp closes the sockets/pipes (dependent of the value of
> > USE_PIPES) and then kills it's underlying ssh by calling kill(ssh, SIGHUP).
> >
> > This `kill' kills the underlying ssh immediately instead of giving
> > time to cleanup. This results in breaking the connection to the sshd
> > which in turn misses to cleanup it's connection to the subsystem.
> >
> [..]
>
> What was the final decision in on this patch?  Is there going to be a
> different fix in the OpenSSH tree or should I apply this before 2.5.1p2?

Fine with me - except the shutdown() stuff shouldn't be conditional on
cygwin. i.e we should always use it when using socketpairs.

Commit at your leisure :)

-d

-- 
| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's
| http://www.mindrot.org          /   distributed filesystem'' - Dan Geer






More information about the openssh-unix-dev mailing list