sched_setscheduler(pid, sched_getscheduler(pid), param) should behave like
sched_setparam(pid, param).
--
Regards,
Christian
From a67e6679cc2bb199713b1f783d5219cb8364f5f4 Mon Sep 17 00:00:00 2001
From: Christian Franke
Date: Sat, 23 Nov 2024 19:50:29 +0100
Subject: [PATCH] Cygwin: sched_setsche
From: Jeremy Drake
It appears this is causing hangs on native x86_64 in similar scenarios
as the hangs on ARM64, because `CancelSynchronousIo` is returning `TRUE`
but not canceling the `ReadFile` call as expected.
Addresses:
https://github.com/msys2/MSYS2-packages/issues/4340#issuecomment-24914