]> git.ipfire.org Git - thirdparty/chrony.git/commit
sys_linux: avoid blocking in reading of external PHC timestamp
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 1 Mar 2023 13:41:34 +0000 (14:41 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 2 Mar 2023 14:13:18 +0000 (15:13 +0100)
commit39ff7ceecaa84fdd24e9ef8507f17384174222a5
tree024a32717ca5684d56b04ec678690d45cad7c4ad
parent06945d927b84d00dbd9e11301ae7a28b4db5f048
sys_linux: avoid blocking in reading of external PHC timestamp

The kernel has a common queue for all readers of a PHC device. With
multiple PHC refclocks using the same device some reads blocked. PHC
devices don't seem to support non-blocking reads. Use poll() to check if
a timestamp is available before reading from the descriptor.
sys_linux.c