]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: honor --pid with fifos
authorPádraig Brady <P@draigBrady.com>
Fri, 18 Oct 2024 12:40:13 +0000 (13:40 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 8 Jan 2025 12:11:43 +0000 (12:11 +0000)
commit177fcec66d50b7e7ee351aad417a0bd9e0eb4673
treede50ff27019f666862d05c87dbc5715ca0c66251
parent10406103b81b737597f9a933fc53118e10c0dc11
tail: honor --pid with fifos

* src/tail.c (tail_file): Open files with O_NONBLOCK
if we might need async processing.
(pipe_bytes): Ignore EAGAIN read() errors.
(pipe_lines): Likewise.
* tests/tail/pid-pipe.sh: Add a new test.
* tests/local.mk: Reference the new test.
* NEWS: Mention the bug fix.
Reported by Berhard Voelker.
NEWS
src/tail.c
tests/local.mk
tests/tail/pid-pipe.sh [new file with mode: 0755]