commit 5b8ac0fb5e6973411eb934e42e1f696f59b69991 Author: Thomas Draebing Date: Wed Aug 12 15:58:16 2020 +0200 Register graceful shutdown for show connections command Change-Id: I24bfe9c6ea4a43ad10c294ae44d5d3fa1b3a7bec diff --git a/java/com/google/gerrit/sshd/commands/ShowConnections.java b/java/com/google/gerrit/sshd/commands/ShowConnections.java index d579ef6..52e824b 100644 --- a/java/com/google/gerrit/sshd/commands/ShowConnections.java +++ b/java/com/google/gerrit/sshd/commands/ShowConnections.java @@ -85,6 +85,7 @@ final class ShowConnections extends SshCommand { @Override protected void run() throws Failure { + enableGracefulStop(); final IoAcceptor acceptor = daemon.getIoAcceptor(); if (acceptor == null) { throw new Failure(1, "fatal: sshd no longer running");