8000 bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread by asvetlov · Pull Request #13630 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread #13630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jun 2, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improve logging message
  • Loading branch information
asvetlov committed Jun 2, 2019
commit de56eb9c4b405fadcc33710341f55c1b397643f2
4 changes: 2 additions & 2 deletions Lib/asyncio/unix_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ def _do_waitpid(self, expected_pid):
pid, exc_info=True)
else:
if loop.is_closed():
logger.warning("Loop %r that handles pid %r is gone", loop, pid)
logger.warning("Loop %r that handles pid %r is closed", loop, pid)
else:
if debug_log and loop.get_debug():
logger.debug('process %s exited with returncode %s',
Expand Down Expand Up @@ -1280,7 +1280,7 @@ def _do_waitpid(self, loop, expected_pid, callback, args):
expected_pid, returncode)

if loop.is_closed():
logger.warning("Loop %r that handles pid %r is gone", loop, pid)
logger.warning("Loop %r that handles pid %r is closed", loop, pid)
else:
loop.call_soon_threadsafe(callback, pid, returncode, *args)

Expand Down
0