dom0/core: fix QubesDaemonPidfile to match ContextManager signature

This commit is contained in:
Marek Marczykowski 2013-02-14 19:04:05 +01:00
parent cd4c62fc42
commit 740ffd2ee7

View File

@ -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: