Snapshot

Damien Miller djm at mindrot.org
Mon Oct 2 22:29:36 EST 2000


On Sun, 1 Oct 2000, Pekka Savola wrote:

> On Sat, 30 Sep 2000, Damien Miller wrote:
> 
> > There is now a new snapshot available at:
> > 20000929
> >  - (djm) Fix SSH2 not terminating until all background tasks done
> >  problem.
> 
> This is a bit buggy;  scp w/ SSH2 will now cause abrupt ending of scp
> transfers:
>
> pekkas at netcore.fi's password: 
> log.c                100%
> |*********************************************************|  5194 00:00 
> Connection to netcore.fi closed by remote host.

Most frustrating.

Markus, what do you recommend? On Linux (and other systems) background 
processes will hold their fd 0,1,2 open and sshd will get get stuck in 
serverloop{2}. 

There is a hack in the portable version for SSH1 which breaks out of 
serverloop after a SIGCHLD and one pass through the 
wait_until_can_do_something() select. I have tried a hack for SSH2 
which breaks out of serverloop2 if a SIGCHLD has been received and
there are no active sessions left, but this causes the above problem 
with scp over ssh2.

Can you recommend a better approach?

-d

-- 
| ``The power of accurate observation is  | Damien Miller <djm at mindrot.org>
| commonly called cynicism by those who   | @Work <djm at ibs.com.au>
| have not got it'' - George Bernard Shaw | http://www.mindrot.org







More information about the openssh-unix-dev mailing list