summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/unix_events.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20400: Merge Tulip into Python: add the new asyncio.subprocess moduleVictor Stinner2014-02-011-6/+1
| | | | | | | | | | | | | | | | | | | | * 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)
* asyncio: Fix _UnixWritePipeTransport, raise BrokenPipeError when the pipe isVictor Stinner2014-01-311-1/+4
| | | | closed, but only if there was pending write
* asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor.Victor Stinner2014-01-291-1/+1
|
* asyncio: Add write flow control to unix pipes.Guido van Rossum2014-01-291-3/+11
|
* asyncio: _fatal_error() of _UnixWritePipeTransport and ↵Victor Stinner2014-01-291-1/+2
| | | | | | _ProactorBasePipeTransport shouldn't log BrokenPipeError nor ConnectionResetError. (Same behaviour as _SelectorTransport._fatal_error().)
* Merge latest Tulip into asyncioAndrew Svetlov2014-01-261-3/+0
|
* asyncio: Fix race in FastChildWatcher (by its original author, Anthony Baire).Guido van Rossum2014-01-261-20/+16
|
* Update asyncio from the Tulip projectVictor Stinner2014-01-251-3/+5
| | | | | | | | | | | | | | | | Major changes: - StreamReader.readexactly() now raises an IncompleteReadError if the end of stream is reached before we received enough bytes, instead of returning less bytes than requested. - Unit tests use the main asyncio module instead of submodules like events - _UnixWritePipeTransport now also supports character devices, as _UnixReadPipeTransport. Patch written by Jonathan Slenders. - Export more symbols: BaseEventLoop, BaseProactorEventLoop, BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full
* asyncio: Minimal pty support in UNIX read pipe, by Jonathan Slenders.Guido van Rossum2014-01-101-2/+5
|
* asyncio: Fix race in subprocess transport, by Victor Stinner.Guido van Rossum2014-01-101-1/+2
|
* Issue #19850: asyncio: Set SA_RESTART when registering a signal handler toCharles-François Natali2013-12-051-0/+2
| | | | limit EINTR occurrences.
* asyncio: Fix from Anthony Baire for CPython issue 19566 (replaces earlier fix).Guido van Rossum2013-11-131-28/+41
|
* asyncio: Temporary fix by Victor Stinner for issue 19566.Guido van Rossum2013-11-131-2/+3
|
* asyncio: Add close() back to Unix selector event loop, to remove all signal ↵Guido van Rossum2013-11-071-0/+5
| | | | handlers. Should fix buildbot issues.
* asyncio: Refactor SIGCHLD handling. By Anthony Baire.Guido van Rossum2013-11-041-48/+348
|
* asyncio: Add support for running subprocesses on Windows with the IOCP event ↵Guido van Rossum2013-10-301-142/+3
| | | | loop (Richard Oudkerk).
* Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX ↵Guido van Rossum2013-10-221-4/+25
| | | | hang).
* asyncio: be more lenient if we don't understand status returned by waitpid().Guido van Rossum2013-10-211-13/+13
| | | | | This should have no effect, it's a "shouldn't happe" case. Also tidied up some comments.
* Issue #19310: asyncio: fix child processes reaping logic.Charles-François Natali2013-10-201-17/+19
|
* Issue #19309: asyncio: make waitpid() wait for all child processes, not onlyCharles-François Natali2013-10-201-1/+1
| | | | those in the same process group.
* Rename Transport.pause/resume to pause_reading/pause_writing. Also relax ↵Guido van Rossum2013-10-181-2/+2
| | | | timeout in test_call_later().
* Rename the logger to plain "logger".Guido van Rossum2013-10-171-8/+8
|
* Initial checkin of asyncio package (== Tulip, == PEP 3156).Guido van Rossum2013-10-171-0/+541