more docstring

This commit is contained in:
meejah 2022-09-21 19:29:40 -06:00
parent e111694b3e
commit 0a09d23525
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ def check_pid_process(pidfile):
def cleanup_pidfile(pidfile):
"""
Safely clean up a PID-file
Remove the pidfile specified (respecting locks). If anything at
all goes wrong, `CannotRemovePidFile` is raised.
"""
lock_path = _pidfile_to_lockpath(pidfile)
with FileLock(lock_path.path):