Skip to content

Commit 549f721

Browse files
heliomeiralinsjustinmk
authored andcommitted
event_loop/asyncio.py: Attach loop to child watcher (#241)
Closes #238
1 parent c8f55d1 commit 549f721

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

neovim/msgpack_rpc/event_loop/asyncio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def _connect_stdio(self):
9393
self._loop.run_until_complete(coroutine)
9494

9595
def _connect_child(self, argv):
96+
self._child_watcher = asyncio.get_child_watcher()
97+
self._child_watcher.attach_loop(self._loop)
9698
coroutine = self._loop.subprocess_exec(self._fact, *argv)
9799
self._loop.run_until_complete(coroutine)
98100

0 commit comments

Comments
 (0)