]> git.ipfire.org Git - thirdparty/chrony.git/commit
sys_linux: use pthread_setschedparam instead of sched_setscheduler
authorStefan R. Filipek <srfilipek@gmail.com>
Thu, 4 Apr 2019 23:12:39 +0000 (19:12 -0400)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 8 Apr 2019 14:38:38 +0000 (16:38 +0200)
commit69c6dffd63c58f329999a8d3420c5d2875940b5f
treecd343ba3b3beff7f6937a27bdc97aa4b7f8de0af
parent2ddd0ae23181f529bf0e8abaecfc9c726d672568
sys_linux: use pthread_setschedparam instead of sched_setscheduler

Fix an issue with Linux and musl libc where sched_setscheduler is not
implemented. It seems that pthread_setschedparam is more widely
supported across different C libraries and OSs. For our use case, it
should make no difference which call is used.
configure
sys.c
sys_linux.c