From 740ffd2ee7966b4c41a8ad92f1ed435908800f56 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 14 Feb 2013 19:04:05 +0100 Subject: [PATCH] dom0/core: fix QubesDaemonPidfile to match ContextManager signature --- dom0/qvm-core/qubes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index e25da6e6..849d571d 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -3121,8 +3121,10 @@ class QubesDaemonPidfile(object): def __enter__ (self): # assumes the pidfile doesn't exist -- you should ensure it before opening the context self.create_pidfile() - def __exit__ (self): + + def __exit__ (self, exc_type, exc_val, exc_tb): self.remove_pidfile() + return False # vim:sw=4:et: