示例#1
0
def setup(l_argv, b_spawn_child=True):
    """Perform any setup needed to do i/o with the child process."""
    _set_max_needs_input_length()
    # Enable tab completion (with our own 'completer' function)
    #readline.parse_and_bind('tab: complete')
    #readline.set_completer(_fred_completer)
    if b_spawn_child:
        if l_argv[0] in ("python", "perl"):
            _spawn_child([
                "dmtcp_launch", "--quiet", "--disable-dl-plugin",
                "--disable-alloc-plugin", "--with-plugin",
                fredmanager.get_fredhijack_path()
            ] + l_argv)
        else:
            _spawn_child([
                "dmtcp_launch", "--quiet", "--quiet", "--ptrace",
                "--with-plugin",
                fredmanager.get_fredhijack_path()
            ] + l_argv)
示例#2
0
文件: fredio.py 项目: tdenniston/fred
def setup(l_argv, b_spawn_child=True):
    """Perform any setup needed to do i/o with the child process."""
    _set_max_needs_input_length()
    # Enable tab completion (with our own 'completer' function)
    #readline.parse_and_bind('tab: complete')
    #readline.set_completer(_fred_completer)
    if b_spawn_child:
        _spawn_child(["dmtcp_checkpoint",
                      "--quiet",
                      "--with-module",
                      fredmanager.get_fredhijack_path()] +
                     l_argv)
示例#3
0
文件: fredio.py 项目: bbarker/fred
def setup(l_argv, b_spawn_child=True):
    """Perform any setup needed to do i/o with the child process."""
    _set_max_needs_input_length()
    # Enable tab completion (with our own 'completer' function)
    #readline.parse_and_bind('tab: complete')
    #readline.set_completer(_fred_completer)
    if b_spawn_child:
        if l_argv[0] in ("python", "perl"):
            _spawn_child(["dmtcp_launch",
                          "--quiet",
                          "--disable-dl-plugin",
                          "--disable-alloc-plugin",
                          "--with-plugin",
                          fredmanager.get_fredhijack_path()] +
                         l_argv)
        else:
            _spawn_child(["dmtcp_launch",
                          "--quiet",
                          "--quiet",
                          "--ptrace",
                          "--with-plugin",
                          fredmanager.get_fredhijack_path()] +
                         l_argv)