ash,hush: ^C from command line should set $? to 128+SIGINT

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2016-11-24 17:44:02 +01:00
parent 2e4ef38743
commit 8660aeb312
2 changed files with 22 additions and 5 deletions

View File

@@ -9876,6 +9876,7 @@ preadfd(void)
raise(SIGINT);
return 1;
}
exitstatus = 128 + SIGINT;
goto retry;
}
if (nr < 0) {