parameters: (cmd, env=None, **kwargs)
docstring: Run the given command in killable process.
docstring_summary: Run the given command in killable process.
docstring_tokens: Run the given command in killable process .
function: 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)
function_tokens: 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 )