From b35303ff62186610597e53894598d73023bf07db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 6 Jul 2017 21:36:31 +0200 Subject: [PATCH] events: fix cleanup function in qrexec case qrexec-client-vm process may be already dead, don't treat this as an error. --- qubesadmin/events/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qubesadmin/events/__init__.py b/qubesadmin/events/__init__.py index 138e638..db8cf05 100644 --- a/qubesadmin/events/__init__.py +++ b/qubesadmin/events/__init__.py @@ -95,7 +95,10 @@ class EventsDispatcher(object): def cleanup_func(): '''Close connection to qubesd''' - proc.kill() + try: + proc.kill() + except ProcessLookupError: + pass else: raise NotImplementedError('Unsupported qubesd connection type: ' + self.app.qubesd_connection_type)