commit b347a4d0c3a9effe948df5b2a6106cb2fd12f901 Author: Thomas Draebing Date: Wed Aug 12 15:57:53 2020 +0200 Register graceful shutdown for show caches command Change-Id: Ibcb051910ed07a4c3368fbbdc3b215a85657457b diff --git a/java/com/google/gerrit/sshd/commands/ShowCaches.java b/java/com/google/gerrit/sshd/commands/ShowCaches.java index f2a9831..039b74e 100644 --- a/java/com/google/gerrit/sshd/commands/ShowCaches.java +++ b/java/com/google/gerrit/sshd/commands/ShowCaches.java @@ -111,6 +111,7 @@ final class ShowCaches extends SshCommand { @Override protected void run() throws UnloggedFailure { + enableGracefulStop(); nw = columns - 50; Date now = new Date(); stdout.format(