equal
deleted
inserted
replaced
129 self.vfs.makelock(lockname, self.f) |
129 self.vfs.makelock(lockname, self.f) |
130 self.held = 1 |
130 self.held = 1 |
131 except (OSError, IOError) as why: |
131 except (OSError, IOError) as why: |
132 if why.errno == errno.EEXIST: |
132 if why.errno == errno.EEXIST: |
133 locker = self._readlock() |
133 locker = self._readlock() |
|
134 if locker is None: |
|
135 continue |
|
136 |
134 # special case where a parent process holds the lock -- this |
137 # special case where a parent process holds the lock -- this |
135 # is different from the pid being different because we do |
138 # is different from the pid being different because we do |
136 # want the unlock and postrelease functions to be called, |
139 # want the unlock and postrelease functions to be called, |
137 # but the lockfile to not be removed. |
140 # but the lockfile to not be removed. |
138 if locker == self.parentlock: |
141 if locker == self.parentlock: |