(lockfile, path)
Runs at exit after pidfile_taken succeeds.
Runs at exit after pidfile_taken succeeds.
Runs at exit after pidfile_taken succeeds .
def delete_pidfile(lockfile, path):
    '''
    Runs at exit after pidfile_taken succeeds.
    '''
    if lockfile is not None:
        try:
            lockfile.close()
        except:
            pass
    try:
        os.unlink(path)
    except:
        pass
def delete_pidfile ( lockfile , path ) : if lockfile is not None : try : lockfile . close ( ) except : pass try : os . unlink ( path ) except : pass