| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Patch by Anastasia Filatova.
|
|
|
|
|
| |
OSError(22, 'Invalid argument') when writing input data into stdin, whereas
the process already exited.
|
|
|
|
| |
_active shouldn't be cached, it set to None on shutdown.
|
|
|
|
|
| |
communicate rather than 4096 for efficiency. A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
|
|
|
|
| |
to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
|
|
|
|
|
| |
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).
|
|
|
|
| |
descriptor 0, 1 or 2 is closed.
|
| |
|
|
|
|
| |
functionality and thus to work on Windows. Patch by Nick Coghlan.
|
| |
|
|
|
|
| |
Reformulated the textual change, and applied it to the docstring as well.
|
|
|
|
|
| |
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
|
|\
| |
| |
| |
| |
| | |
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.
|
| |
| |
| |
| |
| |
| | |
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
available when configured at compile time.
|
| |
| |
| |
| | |
universal_newlines is true as on Windows.
|
| |
| |
| |
| |
| | |
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
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.
|