]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: avoid undefined behavior when polling outputs
authorPádraig Brady <P@draigBrady.com>
Tue, 28 Feb 2023 13:34:31 +0000 (13:34 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 28 Feb 2023 14:04:16 +0000 (14:04 +0000)
commit5bcc2912e7d7c16d3052a7ed4f0904f72573255e
treef6868796e53f6f8c69cedbdf2c9ed1d0aed1c693
parentfb757fd7d9b82284be50c10e0e6ce2d6e66b70af
tail: avoid undefined behavior when polling outputs

* src/tail.c (check_output_alive): Only check the returned
events from poll() when it indicates there are events to check.
src/tail.c