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