summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-24 17:44:02 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-24 17:44:02 +0100
commit8660aeb3127416a53e0b2e43bb1a82907f468692 (patch)
tree3797b0012e544ff040993b43b31ccb58f6e43a6f /shell/ash.c
parent2e4ef38743c3d4aef109b5cc04429ec1f0e2f6c8 (diff)
downloadbusybox-w32-8660aeb3127416a53e0b2e43bb1a82907f468692.tar.gz
busybox-w32-8660aeb3127416a53e0b2e43bb1a82907f468692.tar.bz2
busybox-w32-8660aeb3127416a53e0b2e43bb1a82907f468692.zip
ash,hush: ^C from command line should set $? to 128+SIGINT
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 15246f55f..3e5a3b3e9 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -9876,6 +9876,7 @@ preadfd(void)
9876 raise(SIGINT); 9876 raise(SIGINT);
9877 return 1; 9877 return 1;
9878 } 9878 }
9879 exitstatus = 128 + SIGINT;
9879 goto retry; 9880 goto retry;
9880 } 9881 }
9881 if (nr < 0) { 9882 if (nr < 0) {