Show More
@@ -60,7 +60,7 b' class lock(object):' | |||||
60 | def trylock(self): |
|
60 | def trylock(self): | |
61 | if lock._host is None: |
|
61 | if lock._host is None: | |
62 | lock._host = socket.gethostname() |
|
62 | lock._host = socket.gethostname() | |
63 |
lockname = lock._host |
|
63 | lockname = '%s:%s' % (lock._host, os.getpid()) | |
64 | while not self.held: |
|
64 | while not self.held: | |
65 | try: |
|
65 | try: | |
66 | util.makelock(lockname, self.f) |
|
66 | util.makelock(lockname, self.f) |
General Comments 0
You need to be logged in to leave comments.
Login now