The PKI CLI has been modified to catch KeyboardInterrupt and exit
cleanly without displaying the stack trace.

Pushed to master under trivial rule.

--
Endi S. Dewata
>From 17df5982a5e312eb3400237655740efe7c2f74e1 Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <[email protected]>
Date: Mon, 30 Jan 2017 22:33:47 +0100
Subject: [PATCH] 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(+)

diff --git a/base/java-tools/bin/pki b/base/java-tools/bin/pki
index ba321be9698b385d2c726c8930f079663089ab6d..53e1b893a7e7a5f80c309039e08507b1ddf9c85e 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)
-- 
2.5.5

_______________________________________________
Pki-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pki-devel

Reply via email to