diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-03-16 21:28:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-03 09:16:25 +0200 |
commit | 39825b591ceb7beaaed8a1c424235db48d79e4d1 (patch) | |
tree | 8ced67aadc6162d6123a8ea276d20f94dcca192a | |
parent | f9f35ee93821048bbace895c5c688bafbda2c3f3 (diff) | |
download | barebox-39825b591ceb7beaaed8a1c424235db48d79e4d1.tar.gz barebox-39825b591ceb7beaaed8a1c424235db48d79e4d1.tar.xz |
memcpy command: allow to interrupt
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | commands/mem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/mem.c b/commands/mem.c index a5eea36049..88af55c1b8 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -483,6 +483,9 @@ static int do_mem_cp(struct command *cmdtp, int argc, char *argv[]) } count -= r; + + if (ctrlc()) + goto out; } if (count) { |