diff options
author | Guido van Rossum <guido@python.org> | 1999-02-01 23:54:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-01 23:54:31 (GMT) |
commit | 246bc17a8b680fd08af7aeb405e8d0feed3fb9f5 (patch) | |
tree | 5ed86112aaef8453fe26cf37a31c0c51d8794028 /Modules | |
parent | 67c65b2954e8fc2bfc3838a4ca0e6ed76cdb1829 (diff) | |
download | cpython-246bc17a8b680fd08af7aeb405e8d0feed3fb9f5.zip cpython-246bc17a8b680fd08af7aeb405e8d0feed3fb9f5.tar.gz cpython-246bc17a8b680fd08af7aeb405e8d0feed3fb9f5.tar.bz2 |
Add _P_WAIT etc. for NT.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e309dc1..3226043 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1461,6 +1461,8 @@ posix_spawnv(self, args) } argvlist[argc] = NULL; + if (mode == _OLD_P_OVERLAY) + mode = _P_OVERLAY; i = _spawnv(mode, path, argvlist); PyMem_DEL(argvlist); @@ -1567,6 +1569,8 @@ posix_spawnve(self, args) } envlist[envc] = 0; + if (mode == _OLD_P_OVERLAY) + mode = _P_OVERLAY; i = _spawnve(mode, path, argvlist, envlist); if (i == -1) (void) posix_error(); @@ -3431,6 +3435,14 @@ all_ins(d) if (ins(d, "O_TEXT", (long)O_TEXT)) return -1; #endif +#ifdef HAVE_SPAWNV + if (ins(d, "_P_WAIT", (long)_P_WAIT)) return -1; + if (ins(d, "_P_NOWAIT", (long)_P_NOWAIT)) return -1; + if (ins(d, "_P_OVERLAY", (long)_OLD_P_OVERLAY)) return -1; + if (ins(d, "_P_NOWAITO", (long)_P_NOWAITO)) return -1; + if (ins(d, "_P_DETACH", (long)_P_DETACH)) return -1; +#endif + #if defined(PYOS_OS2) if (insertvalues(d)) return -1; #endif |