aboutsummaryrefslogtreecommitdiff
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-8660aeb3127416a53e0b2e43bb1a82907f468692.tar.gz
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)
raise(SIGINT);
return 1;
}
+ exitstatus = 128 + SIGINT;
goto retry;
}
if (nr < 0) {