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:
parent
6614da9a71
commit
46d1e63c76
|
@ -140,7 +140,10 @@ int
|
|||
sched_getscheduler (pid_t pid)
|
||||
{
|
||||
if (pid < 0)
|
||||
return ESRCH;
|
||||
{
|
||||
set_errno (EINVAL);
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
return SCHED_FIFO;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue