]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: fix detection of closed stdout on macOS
authorPádraig Brady <P@draigBrady.com>
Tue, 21 Sep 2021 13:01:34 +0000 (14:01 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 21 Sep 2021 16:50:54 +0000 (17:50 +0100)
commita656db664daca129dba9c481e73eb4e76b9d0009
tree706478b0027e3af5655193bbd0d3d33c0474eacd
parentf8819b657f6a15249b5758c7b1160be97f8805cd
tail: fix detection of closed stdout on macOS

* bootstrap.conf: We only need poll on Linux and AIX
where poll is not replaced.  Also resinstate dependence
on select so we can use it unconditionally.
* src/tail.c (check_output_alive): Reinstate use of select()
by default as poll was seen to be ineffective for this
application on macOS.
Fixes https://bugs.gnu.org/50714
bootstrap.conf
src/tail.c