diff options
| author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-02-06 13:42:32 -0600 |
|---|---|---|
| committer | dana <dana@dana.is> | 2020-02-06 13:42:32 -0600 |
| commit | 754fdc6580192e81ecc0628349102308868b4857 (patch) | |
| tree | fbe8687766ca3b9d3ddf7b54242754aba71e2675 /Src/Modules/system.c | |
| parent | _diff_options: Restore -w completion lost in workers/43351 (diff) | |
| download | zsh-754fdc6580192e81ecc0628349102308868b4857.tar zsh-754fdc6580192e81ecc0628349102308868b4857.tar.gz zsh-754fdc6580192e81ecc0628349102308868b4857.tar.bz2 zsh-754fdc6580192e81ecc0628349102308868b4857.tar.lz zsh-754fdc6580192e81ecc0628349102308868b4857.tar.xz zsh-754fdc6580192e81ecc0628349102308868b4857.tar.zst zsh-754fdc6580192e81ecc0628349102308868b4857.zip | |
zsh/system: Fix infinite loop in sysread
Diffstat (limited to 'Src/Modules/system.c')
| -rw-r--r-- | Src/Modules/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/system.c b/Src/Modules/system.c index 50de59cf9..fb3d80773 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -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; } |
