From 17df5982a5e312eb3400237655740efe7c2f74e1 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 30 Jan 2017 22:33:47 +0100 Subject: Fixed Ctrl-C handling in PKI CLI. The PKI CLI has been modified to catch KeyboardInterrupt and exit cleanly without displaying the stack trace. --- base/java-tools/bin/pki | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/java-tools') diff --git a/base/java-tools/bin/pki b/base/java-tools/bin/pki index ba321be96..53e1b893a 100644 --- a/base/java-tools/bin/pki +++ b/base/java-tools/bin/pki @@ -230,3 +230,7 @@ if __name__ == '__main__': elif cli.debug: traceback.print_exc() sys.exit(e.returncode) + + except KeyboardInterrupt: + print() + sys.exit(-1) -- cgit