From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Mon, 24 Aug 2015 09:11:00 +0200 Subject: [U-Boot] [PATCH v2] net: Return -EINTR when ctrl+c is pressed In-Reply-To: References: Message-ID: <55DAC384.6060006@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Joe, On 08/21/2015 11:21 PM, Joe Hershberger wrote: > Hi Michal, > > On Fri, Aug 21, 2015 at 1:49 AM, Michal Simek wrote: >> Current behavior is that if CTRL+C is pressed command returns 0 that was >> successful which is not correct behavior. >> The easiest test case is "tftpboot 80000 uImage && echo yes" >> and press CTRL+C. Then the second command is called which is incorrect. >> >> Error log: >> zynq-uboot> tftpb 80000 uImage && echo yes >> Gem.e000b000:7 is connected to Gem.e000b000. Reconnecting to >> Gem.e000b000 >> Gem.e000b000 Waiting for PHY auto negotiation to complete....... done >> Using Gem.e000b000 device >> TFTP from server 192.168.0.102; our IP address is 192.168.0.101 >> Filename 'uImage'. >> Load address: 0x80000 >> Loading: ################ >> Abort >> yes >> zynq-uboot> >> >> This patch adds -EINTR return value when CTRL+C is pressed. >> >> Signed-off-by: Michal Simek >> Reviewed-by: Tom Rini > > Acked-by: Joe Hershberger > are you going to take it via net tree or do you want Tom to take it directly? Thanks, Michal