Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SRE-18741: improve shutdown handling
Don't release the lock before cancelling pending locks. There might or might not have been a race condition there, but either way, it's best to have signal handlers be minimal. We can release any existing locks later. We do still need to cancel the lock in the handler, in order to raise an exception to break out of synchronous code. Also, don't try self.zoo.close if self.zoo is None.
- Loading branch information