zsh/system: Fix infinite loop in sysread

zsh-5.8-patches
Roman Perepelitsa 4 years ago committed by dana
parent 1f238665f6
commit 754fdc6580

@ -1,5 +1,8 @@
2020-02-06 dana <dana@dana.is>
* Roman Perepelitsa: 45382: Src/Modules/system.c: Fix infinite
loop in sysread
* Martin von Wittich: 45388 (tweaked):
Completion/Unix/Type/_diff_options: Restore -w completion lost
in workers/43351

@ -174,7 +174,7 @@ bin_sysread(char *nam, char **args, Options ops, UNUSED(int func))
}
while ((ret = select(infd+1, (SELECT_ARG_2_T) &fds,
NULL, NULL,&select_tv)) < 1) {
NULL, NULL,&select_tv)) < 0) {
if (errno != EINTR || errflag || retflag || breaks || contflag)
break;
}

Loading…
Cancel
Save