| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
child subprocess.PIPE parent file descriptors on child error prior to
exec().
This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
child subprocess.PIPE parent file descriptors on child error prior to
exec().
This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".
This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
|
| |
| |
| |
| |
| |
| |
| |
| | |
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".
This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
|
|\ \
| |/
| |
| |
| | |
happen" print() call into a RuntimeWarning as it should've been in the
first place. Because nothing should ever cause unexpected stdout output.
|
| |
| |
| |
| |
| | |
happen" print() call into a RuntimeWarning as it should've been in the
first place. Because nothing should ever cause unexpected stdout output.
|
|\ \
| |/
| |
| | |
used for stdin/stdout/stderr pipes to the child when fork() fails.
|
| |
| |
| |
| | |
used for stdin/stdout/stderr pipes to the child when fork() fails.
|
|\ \
| |/
| |
| | |
when not expected in subprocess.Popen.wait().
|
| |
| |
| |
| | |
not expected in subprocess.Popen.wait().
|
|\ \
| |/
| |
| |
| |
| | |
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.
The executable is also always reported accurately when exec fails.
Unittests enhanced to cover these cases.
|
|\ \
| |/
| |
| |
| | |
to return a returncode of 0 when the child has already exited or cannot be
waited on.
|
| |
| |
| |
| |
| | |
to return a returncode of 0 when the child has already exited or cannot
be waited on.
|
|\ \
| |/
| |
| |
| |
| | |
for certain locales (utf-16 and utf-32 family).
Patch by Chris Jerdonek.
|
| |
| |
| |
| |
| |
| | |
for certain locales (utf-16 and utf-32 family).
Patch by Chris Jerdonek.
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
with universal newlines true.
Patch by Chris Jerdonek.
|
| |
| |
| |
| | |
subprocess and trace modules.
|
| | |
|
| |
| |
| |
| |
| | |
that it can be imported when threads are disabled.
(followup to issue #12098)
|
| |
| |
| |
| |
| | |
_multiprocessing.win32 modules now live in a single module "_winapi".
Patch by sbt.
|
|\ \
| |/
| |
| | |
Windows when the child process has already exited.
|
| |
| |
| |
| | |
Windows when the child process has already exited.
|
| | |
|
| |
| |
| |
| |
| |
| | |
On error, call(), check_call(), check_output() and getstatusoutput() functions
of the subprocess module now kill the process, read its status (to avoid
zombis) and close pipes.
|
|\ \
| |/
| |
| | |
resources (FD/zombie) when killed at the wrong time.
|
| |
| |
| |
| | |
resources (FD/zombie) when killed at the wrong time.
|
| |
| |
| |
| | |
given as a low fd, it gets overwritten.
|
|\ \
| |/
| |
| | |
module: the piped streams can now be properly read from or written to.
|
| |
| |
| |
| |
| |
| |
| | |
module: the piped streams can now be properly read from or written to.
(this was broken due to the 2.x to 3.x transition; communicate() support
is still sketchy)
|
|\ \
| |/
| |
| |
| | |
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
|
| |
| |
| |
| |
| | |
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
|
|\ \
| |/
| |
| | |
environment variables, start with an empty environment.
|
| |
| |
| |
| | |
variables, start with an empty environment.
|
|\ \
| |/
| |
| |
| | |
if the constructor has failed, e.g. because of an undeclared keyword argument.
Patch written by Oleg Oshmyan.
|
| |
| |
| |
| |
| | |
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove the pure Python POSIX subprocess implementation.
If non-CPython VMs (are there any for 3.x yet?) were somehow depending
on this, they already have the exact same set of problems with Python
code being executed after os.fork() that _posixsubprocess was written
to deal with. They should implement an equivalent outside of Python.
|
| |
| |
| |
| | |
mentioned string to the accurate description of what type is required.
|
| |
| |
| |
| |
| | |
wait for the process to end when exiting the context to avoid unintentionally
leaving zombie processes around.
|
| | |
|
|\ \
| |/ |
|
| |\ |
|
| | |
| | |
| | |
| | | |
constants to be used for STARTUPINFO were exposed due to the change.
|
|\ \ \
| |/ / |
|