uboot/net
Michal Simek 19a4fbaadd 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>
2015-08-21 16:32:05 -05:00
..
Kconfig Allow CONFIG_REGEX to be disabled when CONFIG_NET 2015-07-08 18:26:39 -04:00
Makefile
arp.c
arp.h
bootp.c
bootp.h net: Convert protocol structures to use explicit sizes 2015-04-18 11:11:35 -06:00
cdp.c
cdp.h
checksum.c
dns.c
dns.h
eth.c net: Allow drivers to return -ENOSYS with the write_hwaddr() method 2015-07-21 17:39:41 -06:00
link_local.c
link_local.h
net.c net: Return -EINTR when ctrl+c is pressed 2015-08-21 16:32:05 -05:00
net_rand.h
nfs.c
nfs.h
ping.c
ping.h
rarp.c
rarp.h
sntp.c dm: net: rtc: Support using driver model for rtc in sntp 2015-05-05 20:58:40 -06:00
sntp.h
tftp.c tftp: adjust settings to be suitable for 100Mbit ethernet 2015-08-21 16:31:00 -05:00
tftp.h