Title: bpo-38323, asyncio: Fix MultiLoopChildWatcher race condition by vstinner · Pull Request #26536 · python/cpython · GitHub
Open Graph Title: bpo-38323, asyncio: Fix MultiLoopChildWatcher race condition by vstinner · Pull Request #26536 · python/cpython
X Title: bpo-38323, asyncio: Fix MultiLoopChildWatcher race condition by vstinner · Pull Request #26536 · python/cpython
Description: Fix a race condition in asyncio MultiLoopChildWatcher: call the loop add_signal_handler() rather than calling directly signal.signal(), so signal.set_wakeup_fd() is used to wake up the event loop when the SIGCHLD signal is received. Previously, the event loop could block forever if the signal was received while the loop was idle. The signal was only proceed when another event woke up the event loop. https://bugs.python.org/issue38323
Open Graph Description: Fix a race condition in asyncio MultiLoopChildWatcher: call the loop add_signal_handler() rather than calling directly signal.signal(), so signal.set_wakeup_fd() is used to wake up the event loop w...
X Description: Fix a race condition in asyncio MultiLoopChildWatcher: call the loop add_signal_handler() rather than calling directly signal.signal(), so signal.set_wakeup_fd() is used to wake up the event loop w...
Opengraph URL: https://github.com/python/cpython/pull/26536
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fe9d03ad-105f-2e59-d3bf-7fede2883c6d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B0EE:13A77B:F54948:1503A14:6969F5F1 |
| html-safe-nonce | 06264ace2d2347f29fdbd2796ceba041fe023c09d9aca96e21954e6f83b1b942 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEVFOjEzQTc3QjpGNTQ5NDg6MTUwM0ExNDo2OTY5RjVGMSIsInZpc2l0b3JfaWQiOiI5MDU5NzQ4MzM1OTk0OTI2NTc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3ebc124c6682a02abb2ec3c0a8074ca70119a3a207932bf08897d185da08e7c6 |
| hovercard-subject-tag | pull_request:662077781 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/26536/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Fix a race condition in asyncio MultiLoopChildWatcher: call the loop add_signal_handler() rather than calling directly signal.signal(), so signal.set_wakeup_fd() is used to wake up the event loop w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width