projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9cc0bf
)
[utils] Use flock instead of lockf (Fixes #3621)
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 31 Aug 2014 23:41:25 +0000
(
01:41
+0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 31 Aug 2014 23:41:25 +0000
(
01:41
+0200)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 8a36e619ae7246da1f18a4d5fd6cee7b364b81b7..6fe05723484303839947357124fc9d9ebfadcf4e 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1141,10
+1141,10
@@
else:
import fcntl
def _lock_file(f, exclusive):
- fcntl.
lockf
(f, fcntl.LOCK_EX if exclusive else fcntl.LOCK_SH)
+ fcntl.
flock
(f, fcntl.LOCK_EX if exclusive else fcntl.LOCK_SH)
def _unlock_file(f):
- fcntl.
lockf
(f, fcntl.LOCK_UN)
+ fcntl.
flock
(f, fcntl.LOCK_UN)
class locked_file(object):