From: Ross Burton <ross.burton@arm.com>
To: meta-arm@lists.yoctoproject.org
Subject: [PATCH 4/7] runfvp: handle control-c cleanly
Date: Mon, 27 Sep 2021 13:55:59 +0100 [thread overview]
Message-ID: <20210927125602.3400822-4-ross.burton@arm.com> (raw)
In-Reply-To: <20210927125602.3400822-1-ross.burton@arm.com>
If the script receives control-c, don't display the stack trace.
Change-Id: Id0ebf9476ecd685302723fde6a36c2e899d0f3eb
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
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
--
2.25.1
next prev parent reply other threads:[~2021-09-27 12:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 12:55 [PATCH 1/7] arm-bsp/fvp-base: tell FVP to exit on shutdown Ross Burton
2021-09-27 12:55 ` [PATCH 2/7] arm-bsp/fvp-base: enable user-mode networking in runfvp Ross Burton
2021-09-27 12:55 ` [PATCH 3/7] arm/fvpboot: clean up fvpboot_vars Ross Burton
2021-09-27 12:55 ` Ross Burton [this message]
2021-09-27 12:56 ` [PATCH 5/7] runfvp: refactor argument parsing Ross Burton
2021-09-27 12:56 ` [PATCH 6/7] runfvp: ensure the default terminal is usable Ross Burton
2021-09-27 12:56 ` [PATCH 7/7] runfvp: exit cleanly if tinfoil cannot be imported Ross Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210927125602.3400822-4-ross.burton@arm.com \
--to=ross.burton@arm.com \
--cc=meta-arm@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).