MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / spawnv

Function spawnv

tools/python-3.11.9-amd64/Lib/os.py:874–881  ·  view source on GitHub ↗

spawnv(mode, file, args) -> integer Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.

(mode, file, args)

Source from the content-addressed store, hash-verified

872 return waitstatus_to_exitcode(sts)
873
874 def spawnv(mode, file, args):
875 """spawnv(mode, file, args) -> integer
876
877Execute file with arguments from args in a subprocess.
878If mode == P_NOWAIT return the pid of the process.
879If mode == P_WAIT return the process's exit code if it exits normally;
880otherwise return -SIG, where SIG is the signal that killed it. """
881 return _spawnvef(mode, file, args, None, execv)
882
883 def spawnve(mode, file, args, env):
884 """spawnve(mode, file, args, env) -> integer

Callers 1

spawnlFunction · 0.85

Calls 1

_spawnvefFunction · 0.85

Tested by

no test coverage detected