WebKit.PidFile | index /usr/local/share/webware/WebKit/PidFile.py

`Process id file management`

Modules

``

atexit | os |  |

Classes

``

__builtin__.object
  PidFile
exceptions.Exception(exceptions.BaseException)
  ProcessRunning

class PidFile(__builtin__.object)
`` | `Process id file management.`

Methods defined here:

__del__(self)
  `Remove pid file together with our instance.`

__init__(self, path, create=True)
  `Create a pid file with the given path for the current process.`

kill(self)
  `Kill our process.`

pid(self)
  `Return our process id.`

remove(self, stale=False)
  `Remove our pid file.`

running(self)
  `Check whether our process is running.`

write(self)
  `Write our pid file.`

Static methods defined here:

currentPID()
  `Get the current process id.`

killPID(pid, sig=None)
  `Kill the process with the given pid.`

pidRunning(pid)
  `Check whether process with given pid is running.`

Data descriptors defined here:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

class ProcessRunning(exceptions.Exception)
`` | `Error when creating pid file for already running process.`

Method resolution order:
  ProcessRunning
  exceptions.Exception
  exceptions.BaseException
  __builtin__.object

Data descriptors defined here:

__weakref__
  `list of weak references to the object (if defined)`

Methods inherited from exceptions.Exception:

__init__(...)
  `x.__init__(...) initializes x; see help(type(x)) for signature`

Data and other attributes inherited from exceptions.Exception:

__new__ = <built-in method __new__ of type object>
  `T.__new__(S, ...) -> a new object with type S, a subtype of T`

Methods inherited from exceptions.BaseException:

__delattr__(...)
  `x.__delattr__('name') <==> del x.name`

__getattribute__(...)
  `x.__getattribute__('name') <==> x.name`

__getitem__(...)
  `x.__getitem__(y) <==> x[y]`

__getslice__(...)
  `x.__getslice__(i, j) <==> x[i:j]
  Use of negative indices is not supported.`

__reduce__(...)

__repr__(...)
  `x.__repr__() <==> repr(x)`

__setattr__(...)
  `x.__setattr__('name', value) <==> x.name = value`

__setstate__(...)

__str__(...)
  `x.__str__() <==> str(x)`

__unicode__(...)

Data descriptors inherited from exceptions.BaseException:

__dict__

args

message

Data
`` |  | win32api = None