commit 5401ca4db3b63eafb6d909d1815160e0754b97c2 Author: Thomas Draebing Date: Wed Aug 12 15:21:43 2020 +0200 Register graceful shutdown for close connection command Change-Id: I17ec7b2e853da8fefeaa65a3c8b5e9926558ed05 diff --git a/java/com/google/gerrit/sshd/commands/CloseConnection.java b/java/com/google/gerrit/sshd/commands/CloseConnection.java index 60a878a..6cd009b 100644 --- a/java/com/google/gerrit/sshd/commands/CloseConnection.java +++ b/java/com/google/gerrit/sshd/commands/CloseConnection.java @@ -60,6 +60,7 @@ final class CloseConnection extends SshCommand { @Override protected void run() throws Failure { + enableGracefulStop(); IoAcceptor acceptor = sshDaemon.getIoAcceptor(); if (acceptor == null) { throw new Failure(1, "fatal: sshd no longer running");