From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QoVkI-00052E-Q8 for barebox@lists.infradead.org; Wed, 03 Aug 2011 07:20:03 +0000 From: Sascha Hauer Date: Wed, 3 Aug 2011 09:19:58 +0200 Message-Id: <1312355999-19496-2-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1312355999-19496-1-git-send-email-s.hauer@pengutronix.de> References: <1312355999-19496-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] memcpy command: allow to interrupt To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- 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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox