[PATCH] Cygwin: sched_setscheduler: Fix crash if pid of other process is used
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Feb 21 19:51:26 GMT 2025
On Feb 21 17:32, Christian Franke wrote:
> Obviously my testcases for the SCHED_* enhancement were incomplete, sorry.
>
> --
> Regards,
> Christian
>
> From a9e48b5d738c2a683826ab220155778f0f57f003 Mon Sep 17 00:00:00 2001
> From: Christian Franke <christian.franke@t-online.de>
> Date: Fri, 21 Feb 2025 17:25:51 +0100
> Subject: [PATCH] Cygwin: sched_setscheduler: Fix crash if pid of other process
> is used
>
> Add missing PID_MAP_RW to allow changes of _pinfo::sched_policy.
>
> Fixes: 48b189245a13 ("Cygwin: sched_setscheduler: accept SCHED_OTHER, SCHED_FIFO and SCHED_RR")
> Signed-off-by: Christian Franke <christian.franke@t-online.de>
> ---
> winsup/cygwin/sched.cc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Pushed.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list