Cygwin: sched_getscheduler: fix error handling

Fixes: 6b2a2aa4af ("Add missing files.")
Signed-off-by: Christian Franke <christian.franke@t-online.de>
This commit is contained in:
Christian Franke 2024-11-25 15:02:36 +01:00 committed by Corinna Vinschen
parent 6614da9a71
commit 46d1e63c76
1 changed files with 4 additions and 1 deletions

View File

@ -140,7 +140,10 @@ int
sched_getscheduler (pid_t pid)
{
if (pid < 0)
return ESRCH;
{
set_errno (EINVAL);
return -1;
}
else
return SCHED_FIFO;
}