[PATCH 1/2] memcpy command: allow to interrupt

Sascha Hauer s.hauer at pengutronix.de
Wed Aug 3 03:19:58 EDT 2011


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 commands/mem.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/commands/mem.c b/commands/mem.c
index a5eea36..88af55c 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) {
-- 
1.7.5.4




More information about the barebox mailing list