From 49ac5aa17e3e7129f352640b051ddbe235341cd3 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 29 Jun 2011 19:32:49 +0200 Subject: [PATCH] dom0: fix leaked file descriptor from qfile-daemon-dvm --- dom0/restore/qfile-daemon-dvm | 1 + 1 file changed, 1 insertion(+) diff --git a/dom0/restore/qfile-daemon-dvm b/dom0/restore/qfile-daemon-dvm index 837db4d4..024c7eef 100755 --- a/dom0/restore/qfile-daemon-dvm +++ b/dom0/restore/qfile-daemon-dvm @@ -127,6 +127,7 @@ def main(): notify_object = dbus.SessionBus().get_object("org.freedesktop.Notifications", "/org/freedesktop/Notifications") qfile = QfileDaemonDvm(os.getenv("QREXEC_REMOTE_DOMAIN")) lockf = open("/var/run/qubes/qfile-daemon-dvm.lock", 'a') + fcntl.fcntl(lockf, fcntl.F_SETFD, fcntl.FD_CLOEXEC) fcntl.flock(lockf, fcntl.LOCK_EX) dispname = qfile.get_dvm() lockf.close()