summaryrefslogtreecommitdiff
path: root/Lib/asyncio/base_subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-09 21:34:27 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-09 21:34:27 +0100
commit587feb19e8f9c967e6f88ecd85eca962a57d5410 (patch)
treebe76317326a26551b7bc637ba2dbc478fc3c6841 /Lib/asyncio/base_subprocess.py
parent70db9e428aa476682ca80369d09a968b35729845 (diff)
downloadcpython-git-587feb19e8f9c967e6f88ecd85eca962a57d5410.tar.gz
Issue #23209: Break some reference cycles in asyncio. Patch written by Martin
Richard.
Diffstat (limited to 'Lib/asyncio/base_subprocess.py')
-rw-r--r--Lib/asyncio/base_subprocess.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py
index 81698b0985..afc434defa 100644
--- a/Lib/asyncio/base_subprocess.py
+++ b/Lib/asyncio/base_subprocess.py
@@ -182,6 +182,7 @@ class WriteSubprocessPipeProto(protocols.BaseProtocol):
def connection_lost(self, exc):
self.disconnected = True
self.proc._pipe_connection_lost(self.fd, exc)
+ self.proc = None
def pause_writing(self):
self.proc._protocol.pause_writing()