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)
| 917 | return waitstatus_to_exitcode(sts) |
| 918 | |
| 919 | def spawnv(mode, file, args): |
| 920 | """spawnv(mode, file, args) -> integer |
| 921 | |
| 922 | Execute file with arguments from args in a subprocess. |
| 923 | If mode == P_NOWAIT return the pid of the process. |
| 924 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 925 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 926 | return _spawnvef(mode, file, args, None, execv) |
| 927 | |
| 928 | def spawnve(mode, file, args, env): |
| 929 | """spawnve(mode, file, args, env) -> integer |