From: Peter Palfrader Date: Sun, 7 Apr 2013 22:31:16 +0000 (+0200) Subject: Prevent python from releasing locks prematurely, II X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=462182438f9c1984cc2d227669fd7a05ecee7c19;p=dsa-puppet.git Prevent python from releasing locks prematurely, II --- diff --git a/modules/roles/files/static-mirroring/static-master-run b/modules/roles/files/static-mirroring/static-master-run index c82d6884..027f3846 100755 --- a/modules/roles/files/static-mirroring/static-master-run +++ b/modules/roles/files/static-mirroring/static-master-run @@ -169,7 +169,7 @@ def run_mirror(): ret = False for fd in locks: - fd.close() + os.close(fd) return ret