← Commit list

9ad78b418

Denys Vlasenko
Denys Vlasenko
2026-08-09
SUCCESS Duration: 149s

Subject

shell: read: if poll() fails, attempt to process any data collected so far

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c

Build Log

(log yok)

Commit Diff GitHub →

shell/shell_common.c+1 -2
@@ -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);