• Michal Simek's avatar
    net: Return -EINTR when ctrl+c is pressed · 19a4fbaa
    Michal Simek authored
    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: default avatarMichal Simek <michal.simek@xilinx.com>
    Reviewed-by: default avatarTom Rini <trini@konsulko.com>
    Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
    19a4fbaa
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
arp.c Loading commit data...
arp.h Loading commit data...
bootp.c Loading commit data...
bootp.h Loading commit data...
cdp.c Loading commit data...
cdp.h Loading commit data...
checksum.c Loading commit data...
dns.c Loading commit data...
dns.h Loading commit data...
eth.c Loading commit data...
link_local.c Loading commit data...
link_local.h Loading commit data...
net.c Loading commit data...
net_rand.h Loading commit data...
nfs.c Loading commit data...
nfs.h Loading commit data...
ping.c Loading commit data...
ping.h Loading commit data...
rarp.c Loading commit data...
rarp.h Loading commit data...
sntp.c Loading commit data...
sntp.h Loading commit data...
tftp.c Loading commit data...
tftp.h Loading commit data...