You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: it also happens on Python 2 from time to time so there's definitively something wrong with the current implementation.
Also, another problem, in case of invalid CPU we may get NSP (instead of ValueError):
user@freebsd9~/psutil$ python -c "import psutil; psutil.Process().cpu_affinity([199])"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "psutil/__init__.py", line 697, in cpu_affinity
self._proc.cpu_affinity_set(cpus)
File "psutil/_psbsd.py", line 229, in wrapper
raise NoSuchProcess(self.pid, self._name)
psutil.NoSuchProcess: process no longer exists (pid=43037)
This only happens with Python 3. With Python 2 we get ValueError (as supposed to).
The text was updated successfully, but these errors were encountered: