commit b7241a8e2f40193876e815a48563753ebb6be206 Author: Thomas Draebing Date: Wed Aug 12 15:49:48 2020 +0200 Register graceful shutdown for query command Change-Id: Ia9982740a041ad579f4fbeda5e4b204d0e1be4d9 diff --git a/java/com/google/gerrit/sshd/commands/Query.java b/java/com/google/gerrit/sshd/commands/Query.java index 78485d3..772eabe 100644 --- a/java/com/google/gerrit/sshd/commands/Query.java +++ b/java/com/google/gerrit/sshd/commands/Query.java @@ -106,6 +106,7 @@ public class Query extends SshCommand implements DynamicOptions.BeanReceiver { @Override protected void run() throws Exception { + enableGracefulStop(); processor.query(join(query, " ")); }