From: Ansgar Burchardt Date: Wed, 17 Jun 2015 07:57:01 +0000 (+0200) Subject: Implicitly release lock when closing file X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=57ab3a0d9a3eafaadd407ab5c1473d5b75397b70;p=dak.git Implicitly release lock when closing file Letting Python close the file will also release the lock after having flushed all buffers. Reported-by: Niels Thykier --- diff --git a/daklib/rm.py b/daklib/rm.py index f9917584..e20cb5c1 100644 --- a/daklib/rm.py +++ b/daklib/rm.py @@ -585,6 +585,3 @@ def remove(session, reason, suites, removals, logfile.write("=========================================================================\n") logfile822.write("\n") - - fcntl.lockf(logfile822, fcntl.LOCK_UN) - fcntl.lockf(logfile, fcntl.LOCK_UN)