This commit is contained in:
Benjamin Peterson 2011-08-09 16:49:13 -05:00
parent 398256b230
commit a17a5d67b4
1 changed files with 1 additions and 1 deletions

View File

@ -5072,7 +5072,7 @@ posix_sched_setaffinity(PyObject *self, PyObject *args)
pid_t pid; pid_t pid;
Py_cpu_set *cpu_set; Py_cpu_set *cpu_set;
if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!:schbed_setaffinity", if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!:sched_setaffinity",
&pid, &cpu_set_type, &cpu_set)) &pid, &cpu_set_type, &cpu_set))
return NULL; return NULL;
if (sched_setaffinity(pid, cpu_set->size, cpu_set->set)) if (sched_setaffinity(pid, cpu_set->size, cpu_set->set))