Closed GoogleCodeExporter closed 9 years ago
Not sure what problem you are referring to here.
Is PID 0 supposed to be an alias for "set an affinity for spawned process in
advance"?
Is that stated somewhere?
I can't see anything like that in "man sched_setaffinity" on Ubuntu 12.04.
Original comment by g.rodola
on 28 Jun 2012 at 1:37
Yes, it is - unfortunately I cannot find a corresponding document at the moment.
I guess it should be sufficient to call:
psutil.Process(os.getpid()) and then start subprocess.
Original comment by maciej.l...@gmail.com
on 29 Jun 2012 at 5:29
That would seem to be more likely.
Also, even if PID 0 has the meaning you are suggesting, psutil is not
misbehaving in raising AccessDenied: it just means you don't have the
permission to perform that particular action (sched_setaffinity(3) call) in
which case you might try to use the root user and see what happens.
Closing out as invalid for now. If you find any reference to PID 0 please
reopen.
Original comment by g.rodola
on 29 Jun 2012 at 11:45
Original issue reported on code.google.com by
maciej.l...@gmail.com
on 28 Jun 2012 at 1:31