Пример #1
0
def set_child_mode(session):
    """
    Parameters
    ----------
    session : ikabot.web.session.Session
    """
    session.padre = False
    deactivate_sigint()
Пример #2
0
def forkear(s):
    newpid = os.fork()
    if newpid != 0:
        # padre
        newpid = str(newpid)
        run('kill -SIGSTOP ' + newpid)
        run('bg ' + newpid)
        run('disown ' + newpid)
    else:
        # hijo
        s.padre = False
        deactivate_sigint()
        s.login()
Пример #3
0
def set_child_mode(s):
    s.padre = False
    deactivate_sigint()
    s.login()