[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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 <niels@thykier.net>
---
 daklib/rm.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/daklib/rm.py b/daklib/rm.py
index f991758..e20cb5c 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)
-- 
2.1.4


Reply to: