hang on exit bug under Linux

Markus Friedl markus at openbsd.org
Tue Dec 11 07:16:20 EST 2001


On Mon, Dec 10, 2001 at 09:10:08AM -0800, Michael wrote:
> > On Fri, Dec 07, 2001 at 02:18:10PM -0800, Michael wrote:
> > > Has this issue been resolved in 3.02 ??
> > 
> > no bugreport, no fix.  no bug, no fix.
> > 
> 
> so try this, guaranteed to hang the exit of the session for 
> openssh, but ssh-1.2.27 likes it fine.
> 
> file tst.pl
> #!/usr/bin/perl
> 
> while (1) {
>   sleep 1;
> }
> 
> # end
> 
> at the keyboard, just type
> 
> > perl tst.pl &
> > exit
> 
> 
> Like I said, ssh-1.2.27 works fine

ssh-1.2.27 loses data. this has been changed in later
versions, e.g ssh-1.2.32.

> OpenSSH_2.9.9p2 is guaranteed to hang
> 
> This means that a daemon can never be stopped and restarted from the 
> keyboard without a hang or screwing around with special exit 
> procedures. Looks, sounds, smells like a bug to me.

it works unless the daemon is broken.

-m



More information about the openssh-unix-dev mailing list