This commit is contained in:
Jesus Cea 2011-09-10 01:53:19 +02:00
parent 9c82227277
commit 54b01498e3
1 changed files with 3 additions and 3 deletions

View File

@ -4743,9 +4743,9 @@ posix_sched_setscheduler(PyObject *self, PyObject *args)
return NULL; return NULL;
/* /*
** sched_setscheduler() returns 0 in Linux, but ** sched_setscheduler() returns 0 in Linux, but the previous
** the previous scheduling policy. ** scheduling policy under Solaris/Illumos, and others.
** On error, -1 is returned in all Operative Systems. ** On error, -1 is returned in all Operating Systems.
*/ */
if (sched_setscheduler(pid, policy, &param) == -1) if (sched_setscheduler(pid, policy, &param) == -1)
return posix_error(); return posix_error();