MCPcopy Index your code
hub / github.com/python/cpython / spawnl

Function spawnl

Lib/os.py:987–994  ·  view source on GitHub ↗

spawnl(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

985 # but can be easily implemented in Python
986
987 def spawnl(mode, file, *args):
988 """spawnl(mode, file, *args) -> integer
989
990Execute file with arguments from args in a subprocess.
991If mode == P_NOWAIT return the pid of the process.
992If mode == P_WAIT return the process's exit code if it exits normally;
993otherwise return -SIG, where SIG is the signal that killed it. """
994 return spawnv(mode, file, args)
995
996 def spawnle(mode, file, *args):
997 """spawnle(mode, file, *args, env) -> integer

Callers

nothing calls this directly

Calls 1

spawnvFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…