Show More
@@ -83,7 +83,9 b' class lock(object):' | |||
|
83 | 83 | if lock._host is None: |
|
84 | 84 | lock._host = socket.gethostname() |
|
85 | 85 | lockname = '%s:%s' % (lock._host, self.pid) |
|
86 | while not self.held: | |
|
86 | retry = 5 | |
|
87 | while not self.held and retry: | |
|
88 | retry -= 1 | |
|
87 | 89 | try: |
|
88 | 90 | self.vfs.makelock(lockname, self.f) |
|
89 | 91 | self.held = 1 |
General Comments 0
You need to be logged in to leave comments.
Login now