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)
| 921 | # but can be easily implemented in Python |
| 922 | |
| 923 | def spawnl(mode, file, *args): |
| 924 | """spawnl(mode, file, *args) -> integer |
| 925 | |
| 926 | Execute file with arguments from args in a subprocess. |
| 927 | If mode == P_NOWAIT return the pid of the process. |
| 928 | If mode == P_WAIT return the process's exit code if it exits normally; |
| 929 | otherwise return -SIG, where SIG is the signal that killed it. """ |
| 930 | return spawnv(mode, file, args) |
| 931 | |
| 932 | def spawnle(mode, file, *args): |
| 933 | """spawnle(mode, file, *args, env) -> integer |