Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions daemon/pidlockfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import errno

from lockfile import (
LinkFileLock,
AlreadyLocked, LockFailed,
NotLocked, NotMyLock,
)
from lockfile.linklockfile import LinkLockFile


class PIDFileError(Exception):
Expand All @@ -30,15 +30,15 @@ class PIDFileParseError(ValueError, PIDFileError):
""" Raised when parsing contents of PID file fails. """


class PIDLockFile(LinkFileLock, object):
class PIDLockFile(LinkLockFile, object):
""" Lockfile implemented as a Unix PID file.

The PID file is named by the attribute `path`. When locked,
the file will be created with a single line of text,
containing the process ID (PID) of the process that acquired
the lock.

The lock is acquired and maintained as per `LinkFileLock`.
The lock is acquired and maintained as per `LinkLockFile`.

"""

Expand All @@ -53,7 +53,7 @@ def acquire(self, *args, **kwargs):

Locks the PID file then creates the PID file for this
lock. The `timeout` parameter is used as for the
`LinkFileLock` class.
`LinkLockFile` class.

"""
super(PIDLockFile, self).acquire(*args, **kwargs)
Expand Down