mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-14 09:11:02 +00:00
* tail: fix race condition (fix #3765) There exists a race condition (RC) that can occur if changes to a path happen after the initial print loop in `uu_tail()`, but before the path is added to the notify-Watcher thread in `follow()`. To minimize the window where the RC can occur, this moves starting the Watcher thread and adding paths to it from `follow()` to the initial print loop in `uu_tail()`. Additionally, to make sure the RC cannot happen in "gnu/tests/tail-2/F-headers.sh", the error message that is used as a trigger in this test, is delayed until the path is added to the Watcher thread. * build-gnu: remove workarounds for tail Remove workarounds for "tests/tail-2/F-headers.sh" which are (presumably) no longer needed because of the race condition fix. * build-gnu: remove workarounds for tail Remove workarounds for "tests/tail-2/F-headers.sh" which are (presumably) no longer needed because of the race condition fix. * tail: refactor to minimize chances of RC Move "adding paths to Watcher thread" to its own loop and run this loop before the initial tail-print-loop in order to minimize the window for race conditions. |
||
|---|---|---|
| .. | ||
| android-commands.sh | ||
| build-code_coverage.BAT | ||
| build-code_coverage.sh | ||
| build-gnu.sh | ||
| compare_gnu_result.py | ||
| dwr.sh | ||
| GHA-delete-GNU-workflow-logs.sh | ||
| gnu-json-result.py | ||
| publish.sh | ||
| remaining-gnu-error.py | ||
| rewrite_rules.rs | ||
| run-gnu-test.sh | ||
| show-code_coverage.BAT | ||
| show-code_coverage.sh | ||
| show-utils.BAT | ||
| show-utils.sh | ||
| test-repo-whitespace.BAT | ||
| update-version.sh | ||