def METHOD_NAME():
    pathlib.Path("running").touch()
    fd_m, fd_s = create_pty()
    pid = os.fork()
    if pid == 0:
        os.setsid()
        os.dup2(fd_s.fileno(), 0)
        os.dup2(fd_s.fileno(), 1)
        os.dup2(fd_s.fileno(), 2)
        fcntl.ioctl(fd_s.fileno(), termios.TIOCSCTTY, 1)
        while True:
            if not os.access("running", os.F_OK):
                sys.exit(0)
            time.sleep(1)
    fd_m.close()
    fd_s.close()
    return pid