diff options
Diffstat (limited to 'pthreads/sched_setscheduler.c')
-rw-r--r-- | pthreads/sched_setscheduler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pthreads/sched_setscheduler.c b/pthreads/sched_setscheduler.c index 4e060c7e5..869131637 100644 --- a/pthreads/sched_setscheduler.c +++ b/pthreads/sched_setscheduler.c @@ -64,6 +64,8 @@ sched_setscheduler (pid_t pid, int policy) (0xFF & ERROR_ACCESS_DENIED)) ? EPERM : ESRCH; return -1; } + else + CloseHandle(h); } } |