MCPcopy Create free account
hub / github.com/apache/impala / exec_process_async

Function exec_process_async

tests/util/shell_util.py:52–59  ·  view source on GitHub ↗

Executes a subprocess, returning immediately. The process object is returned for later retrieval of the exit code etc.

(cmd)

Source from the content-addressed store, hash-verified

50
51
52def exec_process_async(cmd):
53 """Executes a subprocess, returning immediately. The process object is returned for
54 later retrieval of the exit code etc. """
55 LOG.debug('Executing: %s' % (cmd,))
56 # Popen needs a list as its first parameter. The first element is the command,
57 # with the rest being arguments.
58 return Popen(shlex.split(cmd), shell=False, stdout=PIPE, stderr=PIPE,
59 universal_newlines=True)
60
61
62def shell(cmd, cmd_prepend="set -euo pipefail\n", stdout=PIPE, stderr=STDOUT,

Callers 1

exec_processFunction · 0.85

Calls 1

debugMethod · 0.45

Tested by

no test coverage detected