Module Expr Str Assign NameStore Str Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr Num body Raise decorator_list decorator_list
N/A N/A 
Simple PidFile Module for a pep3143 daemon implementation.

 N/A __author__ schlitzer N/A atexit N/A fcntl N/A os PidFile N/A object N/A N/A 
    PidFile implementation for PEP 3143 Daemon.

    This Class can also be used with pythons 'with'
    statement.

    :param pidfile:
        filename to be used as pidfile, including path
    :type pidfile: str
     __init__ N/A N/A self pidfile N/A N/A N/A 
        Create a new instance
         N/A N/A self _pidfile pidfile N/A N/A self pidfile None N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A self acquire N/A self N/A __exit__ N/A N/A self exc_type exc_value exc_tb N/A N/A N/A N/A exc_type None N/A N/A N/A N/A self release N/A False N/A N/A N/A self release N/A True N/A acquire N/A N/A self N/A N/A N/A Acquire the pidfile.

        Create the pidfile, lock it, write the pid into it
        and register the release with atexit.


        :return: None
        :raise: SystemExit
         N/A N/A N/A pidfile N/A open N/A self _pidfile a N/A N/A N/A IOError N/A err N/A N/A N/A SystemExit err N/A N/A N/A N/A N/A fcntl flock N/A N/A pidfile fileno N/A N/A fcntl LOCK_EX N/A fcntl LOCK_NB N/A N/A N/A IOError N/A N/A N/A SystemExit N/A Already running according to  N/A self _pidfile N/A N/A N/A pidfile seek 0 N/A N/A N/A pidfile truncate N/A N/A N/A pidfile write N/A N/A str N/A N/A os getpid N/A N/A N/A pidfile flush N/A N/A self pidfile pidfile N/A N/A N/A atexit register N/A self release N/A release N/A N/A self N/A N/A N/A Release the pidfile.

        Close and delete the Pidfile.


        :return: None
         N/A N/A N/A N/A N/A N/A self pidfile close N/A N/A N/A os remove N/A self _pidfile N/A N/A N/A OSError N/A err N/A N/A N/A N/A err errno 2 N/A N/A N/A N/A