Show More
@@ -113,7 +113,7 b' class lock(object):' | |||||
113 | # held, or can race and break valid lock. |
|
113 | # held, or can race and break valid lock. | |
114 | try: |
|
114 | try: | |
115 | l = lock(self.f + '.break', timeout=0) |
|
115 | l = lock(self.f + '.break', timeout=0) | |
116 |
|
|
116 | util.unlink(self.f) | |
117 | l.release() |
|
117 | l.release() | |
118 | except error.LockError: |
|
118 | except error.LockError: | |
119 | return locker |
|
119 | return locker | |
@@ -126,7 +126,7 b' class lock(object):' | |||||
126 | if self.releasefn: |
|
126 | if self.releasefn: | |
127 | self.releasefn() |
|
127 | self.releasefn() | |
128 | try: |
|
128 | try: | |
129 |
|
|
129 | util.unlink(self.f) | |
130 | except OSError: |
|
130 | except OSError: | |
131 | pass |
|
131 | pass | |
132 |
|
132 |
General Comments 0
You need to be logged in to leave comments.
Login now