FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-22087: Fix Policy.get_event_loop() to detect fork by 1st1 · Pull Request #7208 · python/cpython · GitHub

/ cpython Public

bpo-22087: Fix Policy.get_event_loop() to detect fork - #7208

Merged
1st1 merged 2 commits into
python:masterfrom
1st1:fixfork
May 29, 2018
Merged

bpo-22087: Fix Policy.get_event_loop() to detect fork#7208
1st1 merged 2 commits into
python:masterfrom
1st1:fixfork

Conversation

1st1 commented May 29, 2018
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Original patch by Dan O'Reilly.

https://bugs.python.org/issue22087

pitrou commented May 29, 2018

Copy link
Copy Markdown
Member

I think it would be nice if the test did a bit more, for example run some coroutine or perhaps even some simple socket ping-pong. That would check that other infrastructure is also fork-safe, not just the event loop instantiation logic.

1st1 commented May 29, 2018

Copy link
Copy Markdown
Member Author

Sure, added a basic test for that. Don't think we need more than that though, as the entirety of "other infrastructure" should be initialized via the loop's constructor.

pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. I'm assuming the test isn't run on Windows?

1st1 commented May 29, 2018

Copy link
Copy Markdown
Member Author

I'm assuming the test isn't run on Windows?

Yes, it's only for Unix.

asvetlov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

1st1 merged commit 5d97b7b into python:master May 29, 2018

Copy link
Copy Markdown
Contributor

Thanks @1st1 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

1st1 deleted the fixfork branch May 29, 2018 19:38

Copy link
Copy Markdown

GH-7215 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 29, 2018
Original patch by Dan O'Reilly.
(cherry picked from commit 5d97b7b)

Co-authored-by: Yury Selivanov <yury@magic.io>

Copy link
Copy Markdown
Contributor

Sorry, @1st1, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 5d97b7bcc19496617bf8c448d2f149cc28c73bc7 3.6

Copy link
Copy Markdown

GH-7218 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request May 29, 2018
Original patch by Dan O'Reilly.
(cherry picked from commit 5d97b7b)

Co-authored-by: Yury Selivanov <yury@magic.io>
1st1 pushed a commit to 1st1/cpython that referenced this pull request May 29, 2018
1st1 pushed a commit to 1st1/cpython that referenced this pull request May 29, 2018
1st1 pushed a commit to 1st1/cpython that referenced this pull request May 29, 2018
1st1 pushed a commit that referenced this pull request May 30, 2018
1st1 pushed a commit that referenced this pull request May 30, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL