scheduler: fix more python-linux-procfs tracebacks
Fixes traceback if the queried process disappears. Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
cdefe91ee1
commit
191785a054
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ class SchedulerPlugin(base.Plugin):
|
|||
def _affinity_changeable(self, p):
|
||||
try:
|
||||
flags = p["stat"]["flags"]
|
||||
except (AttributeError, KeyError):
|
||||
except (IOError, OSError, AttributeError, KeyError):
|
||||
return False
|
||||
return not bool(int(flags) & self.PF_NO_SETAFFINITY)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue