coreutils/util
Jan Scheer 75edeea5e4
tail: reduce CPU load for polling (#3618)
* tail: reduce CPU load for polling

This reduces the CPU load for polling drastically (from ~80% down to ~5%)
by removing/fixing several previous workarounds related to polling,
while still passing all related GNU test-suite checks.
* set Notify::PollWatcher delay to: sleep_sec/10 instead of
  sleep_sec/100
* set recv_timeout to sleep_sec instead of sleep_sec/100
* remove the manual polling of watched files

Bugs:
* fix an issue with headers to consistently pass
"test_follow_name_retry_headers" and "gnu/tests/tail-2/overlay-headers.sh"

Code clean-up and refactor
* make fields of struct FileHandling private (and add getters/setters)
to ensure that the paths are absolute and match the paths returned by
Notify::Events
* replace calls to "crash!" with "return USimpleError"
* clean-up formatting
2022-06-21 22:21:19 +02:00
..
android-commands.sh Add missing \# interpreter line 2022-05-10 13:49:52 +02:00
build-code_coverage.BAT
build-code_coverage.sh
build-gnu.sh tail: reduce CPU load for polling (#3618) 2022-06-21 22:21:19 +02:00
compare_gnu_result.py
dwr.sh
GHA-delete-GNU-workflow-logs.sh
gnu-json-result.py
publish.sh
remaining-gnu-error.py remaining-gnu-error.py: add missing slash 2022-04-06 11:03:27 +02:00
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 Version 0.0.14 (#3553) 2022-05-22 19:57:19 +02:00