Remove the lock.
(self)
| 185 | f'pidfile {self.path} contents invalid.') |
| 186 | |
| 187 | def remove(self): |
| 188 | """Remove the lock.""" |
| 189 | with ignore_errno(errno.ENOENT, errno.EACCES): |
| 190 | os.unlink(self.path) |
| 191 | |
| 192 | def remove_if_stale(self): |
| 193 | """Remove the lock if the process isn't running. |