Отключено бесконечное ожидаение при блокировке

master3.3
Mike Hiretsky 11 years ago
parent 3498b914b7
commit fe324f2f6a

@ -6205,7 +6205,7 @@ class iniParser(_error, templateFormat):
"""
for i in range(0,timeout):
try:
fcntl.flock(fd, fcntl.LOCK_EX)
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
return True
except IOError,e:
if e.errno != errno.EAGAIN:

Loading…
Cancel
Save