Remove the lock.
(self)
| 176 | f'pidfile {self.path} contents invalid.') |
| 177 | |
| 178 | def remove(self): |
| 179 | """Remove the lock.""" |
| 180 | with ignore_errno(errno.ENOENT, errno.EACCES): |
| 181 | os.unlink(self.path) |
| 182 | |
| 183 | def remove_if_stale(self): |
| 184 | """Remove the lock if the process isn't running. |