shell: read: if poll() fails, attempt to process any data collected so far
No binary (build failed)
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -Iinclude -Iinclude -o applets/usage applets/usage.c
(log yok)
| @@ -225,7 +225,7 @@ shell_builtin_read(struct builtin_read_params *params) | |
| break; | |
| } | |
| retval = (const char *)(uintptr_t)1; | |
| - | goto ret; |
| + | break; |
| } | |
| if (read(fd, &buffer[bufpos], 1) != 1) { | |
| err = errno; | |
| @@ -332,7 +332,6 @@ shell_builtin_read(struct builtin_read_params *params) | |
| params->setvar("REPLY", buffer); | |
| } | |
| - | ret: |
| free(buffer); | |
| if (read_flags & BUILTIN_READ_SILENT) | |
| tcsetattr(fd, TCSANOW, &old_tty); | |