Subhendu Ghosh
ae160bba20
bpo-26128: Added __init__to subprocess.STARTUPINFO ( #171 )
The Windows-specific subprocess.STARTUPINFO class now accepts
keyword-only arguments to its constructor to set the various
data attributes.
Patch by Subhendu Ghosh.
9 years ago
Gregory P. Smith
50e16e33af
Issue #29335 : Fix subprocess.Popen.wait() when the child process has
exited to a stopped instead of terminated state (ex: when under ptrace).
9 years ago
Victor Stinner
9505b03bb0
Fix subprocess.Popen.__del__() fox Python shutdown
Issue #29174 , #26741 : subprocess.Popen.__del__() now keeps a strong reference
to warnings.warn() function.
9 years ago
Xavier de Gaye
b35fc626c1
Issue #16255 : subrocess.Popen uses /system/bin/sh on Android as the shell,
instead of /bin/sh.
9 years ago
Gregory P. Smith
f0e98c510d
Issue #20572 : The subprocess.Popen.wait method's undocumented endtime
parameter now raises a DeprecationWarning. It was deprecated in 3.4.
It was never documented prior to that.
9 years ago
Martin Panter
4afdca056b
Issue #26240 : Clean up the subprocess module doc string
Patch by Tim Mitchell.
9 years ago
Steve Dower
050acaed99
Issue #6135 : Adds encoding and errors parameters to subprocess
9 years ago
Victor Stinner
c206f1eb1c
subprocess: enhance ResourceWarning message
* Add the process identifier to the warning message
* Add also a comment to explain the issue
10 years ago
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
1ef8c7e886
Fixes Issue #26373 : subprocess.Popen.communicate now correctly ignores
BrokenPipeError when the child process dies before .communicate()
is called in more (all?) circumstances.
10 years ago
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
d6da7604d3
Issue #27167 : Clarify the subprocess.CalledProcessError error message text
when the child process died due to a signal.
10 years ago
Victor Stinner
5a48e21ff1
subprocess now emits a ResourceWarning warning
Issue #26741 : subprocess.Popen destructor now emits a ResourceWarning warning
if the child process is still running.
10 years ago
Victor Stinner
a58e2c5c49
Issue #26741 : POSIX implementation of subprocess.Popen._execute_child() now
sets the returncode attribute using the child process exit status when exec
failed.
10 years ago
Martin Panter
c76358924f
Issue #22274 : Redirect stderr=STDOUT when stdout not redirected, by Akira Li
10 years ago
Martin Panter
528619b6c3
Issue #26782 : Add STARTUPINFO to subprocess.__all__ on Windows
10 years ago
Victor Stinner
9def284387
subprocess._optim_args_from_interpreter_flags()
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.
10 years ago
Gregory P. Smith
0212c4dc6b
Re-fix issue #19284 : Don't generate the no-op -R command line
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.
10 years ago
Gregory P. Smith
a0c9caad66
Fix issue #6973 : When we know a subprocess.Popen process has died, do
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
10 years ago
Gregory P. Smith
6e73000723
Add a subprocess.run() function than returns a CalledProcess instance for a
more consistent API than the existing call* functions.
(enhancement from issue 23342)
11 years ago
Gregory P. Smith
cb6fdf2c63
issue10838: Rename the subprocess.mswindows internal global to _mswindows.
It is internal only, not a documented API.
11 years ago
Gregory P. Smith
ace55865c5
Addresses Issue #10838 : The subprocess now module includes
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!
11 years ago
Serhiy Storchaka
ab900c21fc
Issue #21619 : Popen objects no longer leave a zombie after exit in the with
statement if the pipe was broken. Patch by Martin Panter.
11 years ago
Charles-François Natali
6e6c59b508
Issue #23285 : PEP 475 -- Retry system calls failing with EINTR.
11 years ago
Victor Stinner
a5e881d2e8
Closes #23234 : Refactor subprocess
Use new OSError exceptions, factorize stdin.write() code.
11 years ago
Antoine Pitrou
afe8d0646c
Issue #21332 : Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.
11 years ago
Victor Stinner
ae58649721
Issue #22043 : time.monotonic() is now always available
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
11 years ago
Serhiy Storchaka
465e60e654
Issue #22033 : Reprs of most Python implemened classes now contain actual
class name instead of hardcoded one.
12 years ago
Gregory P. Smith
7be74cffbe
Remove the obsolete MAXFD constant and Popen._close_fds() method.
They should have been removed years ago when removing the old pure
Python implementation from the file.
12 years ago
Gregory P. Smith
d65ba51e24
subprocess's Popen.wait() is now thread safe so that multiple threads
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value. Fixes issue #21291 .
12 years ago
Andrew Kuchling
4f7b0c3c35
#10481 : describe universal_newlines' effect on communicate()/check_output() output (alternately bytes or strings)
Patch by Sam Kimbrel.
12 years ago
Victor Stinner
7fa767e517
Issue #20976 : pyflakes: Remove unused imports
12 years ago
Benjamin Peterson
21317b654e
merge 3.3 ( #19060 )
12 years ago
Benjamin Peterson
5eea8a7780
remove unnecessary word ( closes #19060 )
Patch by Anastasia Filatova.
12 years ago
Victor Stinner
d5c8ce7cc0
Issue #19612 : On Windows, subprocess.Popen.communicate() now ignores
OSError(22, 'Invalid argument') when writing input data into stdin, whereas
the process already exited.
12 years ago
Serhiy Storchaka
72e7761301
issue12085: Use more Pythonic way to check _child_created.
_active shouldn't be cached, it set to None on shutdown.
12 years ago
Gregory P. Smith
589ecda56e
Fixes issue #19929 : Call os.read with 32768 within subprocess.Popen
communicate rather than 4096 for efficiency. A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
12 years ago
Gregory P. Smith
774f909489
Fixes issue #19506 : Use a memoryview to avoid a data copy when piping data
to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
12 years ago
Gregory P. Smith
53dd8167ff
Fixes issue #15798 : subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed. (correct fix for 3.4 this time)
12 years ago
Gregory P. Smith
361e30c17a
Undo supposed fix for Issue #15798 until I understand why this is
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).
12 years ago
Gregory P. Smith
1eda9e7c30
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.
12 years ago
Tim Golden
acea823fd8
Remove outdated comment
12 years ago
Charles-François Natali
3a4586a9f9
Issue #18923 : Update subprocess to use the new selectors module.
12 years ago
Tim Golden
607981402c
Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring.
12 years ago
Tim Golden
e004175c56
Issue #10197 Rework subprocess.get[status]output to use subprocess functionality and thus to work on Windows. Patch by Nick Coghlan.
12 years ago
Nick Coghlan
ac1a248968
Close #19284 : Handle -R properly in flag helper
Previously, the -R option would be specified multiple times
if PYTHONHASHSEED was set.
12 years ago
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
13 years ago
Ezio Melotti
30b9d5d3af
#18705 : fix a number of typos. Patch by Févry Thibault.
13 years ago
Ronald Oussoren
385521c90e
Cleanup of documentation change from #17860
Reformulated the textual change, and applied it to the docstring as well.
13 years ago
Brett Cannon
cd171c8e92
Issue #18200 : Back out usage of ModuleNotFoundError (8d28d44f3a9a)
13 years ago
Gregory P. Smith
b5461b9884
Prevent a possible double close of parent pipe fds when the subprocess
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.
13 years ago
Brett Cannon
0a140668fa
Issue #18200 : Update the stdlib (except tests) to use
ModuleNotFoundError.
13 years ago