summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Draebing <thomas.draebing@sap.com>2020-08-12 15:58:39 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2020-10-01 23:19:09 +0200
commit4048e47eb420be2b42fc997a6756ec0dffbd589d (patch)
tree7576994ecd6017a5fc59b2dfedffc85bae897769
parent5b8ac0fb5e6973411eb934e42e1f696f59b69991 (diff)
Register graceful shutdown for show queue command
-rw-r--r--java/com/google/gerrit/sshd/commands/ShowQueue.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/google/gerrit/sshd/commands/ShowQueue.java b/java/com/google/gerrit/sshd/commands/ShowQueue.java
index 2a7bd6e0a5..04d06eebb9 100644
--- a/java/com/google/gerrit/sshd/commands/ShowQueue.java
+++ b/java/com/google/gerrit/sshd/commands/ShowQueue.java
@@ -84,6 +84,7 @@ final class ShowQueue extends SshCommand {
@Override
protected void run() throws Failure {
+ enableGracefulStop();
maxCommandWidth = wide ? Integer.MAX_VALUE : columns - 8 - 12 - 12 - 4 - 4;
stdout.print(
String.format(