mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
|
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
While waiting for input in the read builtin, if select() is interrupted
but there is no pending signal, we act like we timed out, and return the
same status as if we had been interrupted by SIGALRM, instead of looping
until we actually do time out.
* Replace the single select() call with a ppoll() loop.
* Improve validation of the timeout value. We now accept things like
"1h30m15s", which we used to silently truncate to "1h". The flip side
is that we no longer accept things like "1hour" or "5sec".
* Modify the existing `read -t 0` test case to verify that read returns
immediately when there is input and fails immediately when there isn't.
* Add a second test case which performs the same tests with a non-zero
timeout value.
PR: 290844
MFC after: 1 week
Fixes:
|
||
|---|---|---|
| .. | ||
| cat | ||
| chflags | ||
| chio | ||
| chmod | ||
| cp | ||
| cpuset | ||
| csh | ||
| date | ||
| dd | ||
| df | ||
| domainname | ||
| echo | ||
| ed | ||
| expr | ||
| freebsd-version | ||
| getfacl | ||
| hostname | ||
| kenv | ||
| kill | ||
| ln | ||
| ls | ||
| mkdir | ||
| mv | ||
| nproc | ||
| pax | ||
| pkill | ||
| ps | ||
| pwait | ||
| pwd | ||
| realpath | ||
| rm | ||
| rmail | ||
| rmdir | ||
| setfacl | ||
| sh | ||
| sleep | ||
| stty | ||
| sync | ||
| test | ||
| tests | ||
| timeout | ||
| uuidgen | ||
| Makefile | ||
| Makefile.inc | ||