summaryrefslogtreecommitdiff
path: root/asyncio/base_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix BaseSubprocessTransport.close()Victor Stinner2015-01-141-0/+2
| | | | Ignore pipes for which the protocol is not set yet (still equal to None).
* Fix BaseSubprocessTransport._kill_wait()Victor Stinner2015-01-141-1/+1
| | | | Set the _returncode attribute, so close() doesn't try to terminate the process.
* Python issue #23173: If an exception is raised during the creation of aVictor Stinner2015-01-141-24/+53
| | | | | subprocess, kill the subprocess (close pipes, kill and read the return status). Log an error in such case.
* Python issue #23209: Break some reference cycles in asyncio. Patch written byVictor Stinner2015-01-091-0/+1
| | | | Martin Richard.
* Fix a race condition in BaseSubprocessTransport._try_finish()Victor Stinner2014-12-181-1/+1
| | | | | | | | | | If the process exited before the _post_init() method was called, scheduling the call to _call_connection_lost() with call_soon() is wrong: connection_made() must be called before connection_lost(). Reuse the BaseSubprocessTransport._call() method to schedule the call to _call_connection_lost() to ensure that connection_made() and connection_lost() are called in the correct order.
* Tulip issue #184: Log subprocess events in debug modeVictor Stinner2014-07-141-0/+36
| | | | | | | | | - 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
* Add BaseSubprocessTransport._pid attributeVictor Stinner2014-07-141-1/+3
| | | | | Store the pid so it is still accessible after the process exited. It's more convinient for debug.
* Move coroutine code in the new module asyncio.coroutinesVictor Stinner2014-06-291-2/+2
|
* Merge (manually) the subprocess_stream into defaultVictor Stinner2014-02-011-14/+9
| | | | | | | | | | | | | | | | | | | | | | * 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
* pass through pause/resume from subprocess pipe proto to subprocess proto.Guido van Rossum2014-01-281-2/+5
|
* Refactoring: get rid of _try_connected().Victor Stinner2014-01-281-18/+14
|
* Code cleanup: remove unused functionAndrew Svetlov2014-01-261-1/+0
|
* Add support for running subprocesses on Windows with the IOCP event loop.Richard Oudkerk2013-10-271-0/+166