Subject: bin/14575: sshd hangs around when child dies.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <christos@zoulas.com>
List: netbsd-bugs
Date: 11/13/2001 13:26:28
>Number:         14575
>Category:       bin
>Synopsis:       sshd hangs around when child dies.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 13 10:27:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Christos Zoulas
>Release:        
>Organization:
	None, whatsoever.
>Environment:
System: NetBSD beowulf.gw.com 1.5X NetBSD 1.5X (GW-GENERIC) #36: Sat Jul 28 11:41:19 EDT 2001 kim@nix.suominen.org:/net/nix/src-3/NetBSD/cvsroot/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
	sshd does not die/cleanup utmp until it can talk to the remote ssh
	after it's child dies.
>How-To-Repeat:
	ssh into a mashine
	~^Z back to the original machine
	ssh into the same machine
	kill -HUP the shell pid of the first login.
	notice using ps/w that the utmp entry is now
	invalid, and that sshd keeps running.
	~^Z back to the original machine
	fg to the first ssh.
	notice that it exits, and now utmp gets cleaned up and sshd exits.
>Fix:
	N/A
>Release-Note:
>Audit-Trail:
>Unformatted:
 		Tue Nov 13 13:22:22 EST 2001