| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Explicitly state that communicate() closes stdin after writing input to it.
|
|
|
|
|
| |
To match the documentation updates already made.
Also renames the local variable used within to match
what it actually holds.
|
|
|
|
|
|
| |
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
|
|
|
| |
Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath.
|
|
|
|
| |
Have the subprocess module set the filename in the FileNotFoundError
exception raised on POSIX systems when the executable or cwd are missing.
|
|
|
|
|
|
|
|
|
| |
* bpo-30121: Fix debug assert in subprocess on Windows
This is caused by closing HANDLEs using os.close which is for CRT file
descriptors and not for HANDLEs.
* bpo-30121: Suppress debug assertion in test_subprocess when ran directly
|
|
|
|
|
|
| |
(#2325)
Prevent passing other invalid environment variables and command arguments.
|
|
|
|
|
| |
On Windows, subprocess.Popen.communicate() now also ignore EINVAL
on stdin.write() if the child process is still running but closed the
pipe.
|
| |
|
| |
|
|
|
| |
#157 added the test, but it's currently (correctly) broken on windows.
|
|
|
|
|
|
|
| |
The Windows-specific subprocess.STARTUPINFO class now accepts
keyword-only arguments to its constructor to set the various
data attributes.
Patch by Subhendu Ghosh.
|
|\
| |
| |
| | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
| |\
| | |
| | |
| | | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
| | |
| | |
| | |
| | | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | | |
Issue #29174, #26741: subprocess.Popen.__del__() now keeps a strong reference
to warnings.warn() function.
|
| | |
| | |
| | |
| | | |
instead of /bin/sh.
|
|\ \ \
| |/ /
| | |
| | | |
It was deprecated in 3.4 and undocumented prior to that.
|
|/ /
| |
| |
| |
| | |
parameter now raises a DeprecationWarning. It was deprecated in 3.4.
It was never documented prior to that.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Patch by Tim Mitchell.
|
| | |
|
| |
| |
| |
| |
| | |
* Add the process identifier to the warning message
* Add also a comment to explain the issue
|
|\ \
| |/
| |
| |
| | |
now correctly ignores BrokenPipeError when the child process dies
before .communicate() is called in more (all?) circumstances.
|
| |
| |
| |
| |
| | |
BrokenPipeError when the child process dies before .communicate()
is called in more (all?) circumstances.
|
| |
| |
| |
| | |
when the child process died due to a signal.
|
| |
| |
| |
| |
| | |
Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning
if the child process is still running.
|
| |
| |
| |
| |
| | |
sets the returncode attribute using the child process exit status when exec
failed.
|
|\ \
| |/ |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Issue #26100:
* Add subprocess._optim_args_from_interpreter_flags()
* Add test.support.optim_args_from_interpreter_flags()
* Use new functions in distutils, test_cmd_line_script, test_compileall and
test_inspect
The change enables test_details() test of test_inspect when -O or -OO command
line option is used.
|
|\
| |
| |
| |
| |
| |
| |
| | |
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests. This simplifies the code.
* assert_python_ok docstring typo fix.
* Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.
|
| |
| |
| |
| |
| |
| | |
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests. This simplifies the code.
|
|\ \
| |/
| |
| |
| | |
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
|
| |
| |
| |
| |
| | |
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
|
| |
| |
| |
| |
| | |
more consistent API than the existing call* functions.
(enhancement from issue 23342)
|
| |
| |
| |
| | |
It is internal only, not a documented API.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
SubprocessError and TimeoutError in its list of exported names for the
users wild enough to use "from subprocess import *".
MAXFD, mswindows and list2cmdline should be dealt with (renamed or
moved) in separate commits.
Committed at 35,000ft. Thanks chromebook free gogo wifi passes!
|
|\ \
| |/
| |
| | |
statement if the pipe was broken. Patch by Martin Panter.
|
| |
| |
| |
| | |
statement if the pipe was broken. Patch by Martin Panter.
|
| | |
|
| |
| |
| |
| | |
Use new OSError exceptions, factorize stdin.write() code.
|
|\ \
| |/
| |
| | |
buffering, rather than block buffering.
|
| |
| |
| |
| | |
buffering, rather than block buffering.
|
| |
| |
| |
| |
| | |
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
|
| |
| |
| |
| | |
class name instead of hardcoded one.
|
| |
| |
| |
| |
| | |
They should have been removed years ago when removing the old pure
Python implementation from the file.
|
|\ \
| |/
| |
| |
| | |
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value. Fixes issue #21291.
|