(cmd, env=None, **kwargs)
Run the given command in killable process.
Run the given command in killable process.
Run the given command in killable process .
def run_command(cmd, env=None, **kwargs):
    """Run the given command in killable process."""
    killable_kwargs = {'stdout':stdout ,'stderr':stderr, 'stdin':stdin}
    killable_kwargs.update(kwargs)

    if sys.platform != "win32":
        return killableprocess.Popen(cmd, preexec_fn=lambda : os.setpgid(0, 0),
                                     env=env, **killable_kwargs)
    else:
        return killableprocess.Popen(cmd, env=env, **killable_kwargs)
def run_command ( cmd , env = None , * * kwargs ) : killable_kwargs = { 'stdout' : stdout , 'stderr' : stderr , 'stdin' : stdin } killable_kwargs . update ( kwargs ) if sys . platform != "win32" : return killableprocess . Popen ( cmd , preexec_fn = lambda : os . setpgid ( 0 , 0 ) , env = env , * * killable_kwargs ) else : return killableprocess . Popen ( cmd , env = env , * * killable_kwargs )