summaryrefslogtreecommitdiff
path: root/asyncio/subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* Python issue #23242: SubprocessStreamProtocol now closes the subprocessVictor Stinner2015-01-151-1/+4
| | | | | | transport at subprocess exit. Clear also its reference to the transport.
* Python issue #23173: Fix SubprocessStreamProtocol.connection_made() to handleVictor Stinner2015-01-141-1/+3
| | | | | | cancelled waiter. Add unit test cancelling subprocess methods.
* Python issue #23173: If an exception is raised during the creation of aVictor Stinner2015-01-141-2/+10
| | | | | subprocess, kill the subprocess (close pipes, kill and read the return status). Log an error in such case.
* Issue #23140: Fix cancellation of Process.wait(). Check the state of the waiterVictor Stinner2015-01-061-1/+2
| | | | future before setting its result.
* Python issue #22685: Set the transport of stdout and stderr StreamReaderVictor Stinner2014-11-251-5/+12
| | | | | objects in the SubprocessStreamProtocol. It allows to pause the transport to not buffer too much stdout or stderr data.
* tulip issue 190: Process.communicate() now ignores ConnectionResetError tooVictor Stinner2014-07-171-5/+7
|
* asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeErrorVictor Stinner2014-07-171-1/+5
| | | | | | | | If you want to handle the BrokenPipeError, you can easily reimplement communicate(). Add also a unit test to ensure that stdin.write() + stdin.drain() raises BrokenPipeError.
* Tulip issue #184: Log subprocess events in debug modeVictor Stinner2014-07-141-0/+26
| | | | | | | | | - Log stdin, stdout and stderr transports and protocols - Log process identifier (pid) - Log connection of pipes - Log process exit - Log Process.communicate() tasks: feed stdin, read stdout and stderr - Add __repr__() method to many classes related to subprocesses
* Move coroutine code in the new module asyncio.coroutinesVictor Stinner2014-06-291-7/+8
|
* asyncio.subprocess: Fix a race condition in communicate()Victor Stinner2014-02-201-2/+1
| | | | | Use self._loop instead of self._transport._loop, because transport._loop is set to None at process exit.
* pep8-ify the code.Yury Selivanov2014-02-181-2/+3
|
* Issue #130: Add more checks on subprocess_exec/subprocess_shell parametersVictor Stinner2014-02-111-2/+3
|
* Remove Process.subprocess attribute; it's too easy to get inconsistent ProcessVictor Stinner2014-02-091-4/+0
| | | | and Popen objects
* Remove empty line at the end of subprocess.pyVictor Stinner2014-02-031-1/+0
|
* Replace Process.get_subprocess() method with a Process.subprocess read-only ↵Victor Stinner2014-02-031-1/+2
| | | | property
* Merge (manually) the subprocess_stream into defaultVictor Stinner2014-02-011-0/+198
* Add a new asyncio.subprocess module * Add new create_subprocess_exec() and create_subprocess_shell() functions * The new asyncio.subprocess.SubprocessStreamProtocol creates stream readers for stdout and stderr and a stream writer for stdin. * The new asyncio.subprocess.Process class offers an API close to the subprocess.Popen class: - pid, returncode, stdin, stdout and stderr attributes - communicate(), wait(), send_signal(), terminate() and kill() methods * Remove STDIN (0), STDOUT (1) and STDERR (2) constants from base_subprocess and unix_events, to not be confused with the symbols with the same name of subprocess and asyncio.subprocess modules * _ProactorBasePipeTransport.get_write_buffer_size() now counts also the size of the pending write * _ProactorBaseWritePipeTransport._loop_writing() may now pause the protocol if the write buffer size is greater than the high water mark (64 KB by default) * Add new subprocess examples: shell.py, subprocess_shell.py, * subprocess_attach_read_pipe.py and subprocess_attach_write_pipe.py