From c5465209c109aa040b11a34ec9df3b02fe77a560 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 27 Sep 2021 13:55:59 +0100 Subject: [PATCH] runfvp: handle control-c cleanly If the script receives control-c, don't display the stack trace. Change-Id: Id0ebf9476ecd685302723fde6a36c2e899d0f3eb Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- scripts/runfvp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/runfvp b/scripts/runfvp index be047689..52d8f20b 100755 --- a/scripts/runfvp +++ b/scripts/runfvp @@ -164,4 +164,7 @@ def runfvp(args): sys.exit(subprocess.run(cli).returncode) if __name__ == "__main__": - runfvp(sys.argv) + try: + runfvp(sys.argv) + except KeyboardInterrupt: + pass