]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Return -EINTR when ctrl+c is pressed
authorMichal Simek <michal.simek@xilinx.com>
Fri, 21 Aug 2015 06:49:48 +0000 (08:49 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:30:33 +0000 (10:30 +0200)
commitee3e21f236c4277ef877b80e2f48631d79a8e8be
tree63db047160eaef3e132c627a2c32cf531dc7df4a
parent8854b5e43e32277b1db0452464d97e0329f37367
net: Return -EINTR when ctrl+c is pressed

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 <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/net.c