diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-24 19:44:02 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-24 19:44:02 +0300 |
commit | 8660aeb3127416a53e0b2e43bb1a82907f468692 (patch) | |
tree | 3797b0012e544ff040993b43b31ccb58f6e43a6f /shell/ash.c | |
parent | 2e4ef38743c3d4aef109b5cc04429ec1f0e2f6c8 (diff) |
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.c | 1 |
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) { |