[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley


Thomas Sibley  added the comment:

Thanks for taking the time to explain.  I was just discovering the same myself 
experimentally.  The MS docs I linked to seem a little misleading. orz

In that case, do you think a doc patch for os.exec* adding a more nuanced take 
on Windows support would be considered?  I'd be glad to write it.

--

___
Python tracker 
<https://bugs.python.org/issue9148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley


Thomas Sibley  added the comment:

It seems like it would be very nice to provide compat if its possible with a 
minimum of effort.

At the very least, a doc patch to os.exec*() seems warranted.  I expected to 
find notes on platform compat in the doc and was pleasantly surprised to see 
the indication of Windows support!  Only later did I find out that it is not 
meaningfully supported.  :-(

--

___
Python tracker 
<https://bugs.python.org/issue9148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley


Thomas Sibley  added the comment:

What about using _execv*() and friends, as documented at 
<https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/execvp-wexecvp?view=vs-2017>?

They appear to use the process overlay feature of _spawnv*() et al., as 
described at 
<https://docs.microsoft.com/en-us/cpp/c-runtime-library/spawn-wspawn-functions?view=vs-2017>
 and 
<https://docs.microsoft.com/en-gb/cpp/c-runtime-library/process-and-environment-control?view=vs-2017>.

--
type: behavior -> 

___
Python tracker 
<https://bugs.python.org/issue9148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley


Change by Thomas Sibley :


--
nosy: +trs

___
Python tracker 
<https://bugs.python.org/issue9148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com