mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
OS/2 has support for spawnvp() and spawnvpe() in the C libraries supplied
with major C compilers (VACPP, EMX+gcc and [Open]Watcom). Also tidy up the export of spawn*() symbols in the os module to match what is found/implemented.
This commit is contained in:
parent
4e10ed3b86
commit
69e18c9344
2 changed files with 234 additions and 2 deletions
|
@ -573,6 +573,10 @@ otherwise return -SIG, where SIG is the signal that killed it. """
|
|||
env = args[-1]
|
||||
return spawnve(mode, file, args[:-1], env)
|
||||
|
||||
|
||||
__all__.extend(["spawnv", "spawnve", "spawnl", "spawnle",])
|
||||
|
||||
|
||||
if _exists("spawnvp"):
|
||||
# At the moment, Windows doesn't implement spawnvp[e],
|
||||
# so it won't have spawnlp[e] either.
|
||||
|
@ -598,8 +602,7 @@ otherwise return -SIG, where SIG is the signal that killed it. """
|
|||
return spawnvpe(mode, file, args[:-1], env)
|
||||
|
||||
|
||||
__all__.extend(["spawnlp","spawnlpe","spawnv", "spawnve","spawnvp",
|
||||
"spawnvpe","spawnl","spawnle",])
|
||||
__all__.extend(["spawnvp", "spawnvpe", "spawnlp", "spawnlpe",])
|
||||
|
||||
|
||||
# Supply popen2 etc. (for Unix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue