[Bug 52] ssh hangs on exit

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu May 15 17:05:16 EST 2008


https://bugzilla.mindrot.org/show_bug.cgi?id=52


leanne <njleanne at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |njleanne at hotmail.com




--- Comment #58 from leanne <njleanne at hotmail.com>  2008-05-15 17:05:09 ---
(In reply to comment #57)
> Close resolved bugs after release.


i think this problem is still exists in hp-ux. if we use "ssh server
'sleep 50 & exit'", the server will hang there 50 secs and then exit,
that is to say, it exits until sleep 50 secs.

and when i use an infinite loop and make it run background, and then
use exit to logout, ssh will still hang there. i debug the code, and
found in channel_garbage_collect(channels.c), chan_is_dead is return 1
for c->isatate and c->ostate equals CHAN_INPUT_OPEN. so the channel
remains open.

Can someone help me check this problem.
the script i use is just this:
 #! /sbin/sh

while (( 1 ))
do
sleep 10 >/dev/null 2>&1
done

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the openssh-bugs mailing list