Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 406169

Summary: net-misc/openssh pipe breaks on system shutdown
Product: Gentoo Linux Reporter: Richard Yao (RETIRED) <ryao>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: floppym, gmurray
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard Yao (RETIRED) gentoo-dev 2012-02-28 15:54:16 UTC
This bug is at least a few years old. Whenever a Gentoo system on which a user is connected via SSH shuts down, the connection freezes and remains that way until either the pipe breaks or the user kills their ssh client.

The sshd init scripts of FreeBSD and Ubuntu Linux both close the connection upon system shutdown. It would be nice if the Gentoo sshd init script did the same.
Comment 1 Mike Gilbert gentoo-dev 2012-02-28 19:11:46 UTC
Do they do this in a way that does not terminate SSH sessions when you restart the service?

I like being able to upgrade openssh remotely.
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-02-29 15:51:28 UTC
(In reply to comment #1)
> Do they do this in a way that does not terminate SSH sessions when you
> restart the service?
> 
> I like being able to upgrade openssh remotely.

You can stop the ssh daemon without killing your existing connections on Ubuntu. It has been a while since I have used FreeBSD and I do not have a VM on hand, so I cannot double check, but I assume that FreeBSD is the same.
Comment 3 SpanKY gentoo-dev 2012-03-01 03:59:37 UTC

*** This bug has been marked as a duplicate of bug 259183 ***