From 191785a05421fbe1f7fe6d48b4907aceac5b57a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Wed, 12 Apr 2017 16:27:53 +0200 Subject: [PATCH] scheduler: fix more python-linux-procfs tracebacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes traceback if the queried process disappears. Signed-off-by: Jaroslav Škarvada --- tuned/plugins/plugin_scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/plugins/plugin_scheduler.py b/tuned/plugins/plugin_scheduler.py index 8ec7ca6..424b514 100644 --- a/tuned/plugins/plugin_scheduler.py +++ b/tuned/plugins/plugin_scheduler.py @@ -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)