'Check if program is running, for internal use'

def _is_running(self):

    pid = peda.getpid()
    if (pid is None):
        text = 'not    running    or    target    is    remote'
        warning_msg(text)
        return None
    else:
        return pid
