Title: [3.7] bpo-33613, test_semaphore_tracker_sigint: fix race condition (GH-7850) by miss-islington · Pull Request #9055 · python/cpython · GitHub
Open Graph Title: [3.7] bpo-33613, test_semaphore_tracker_sigint: fix race condition (GH-7850) by miss-islington · Pull Request #9055 · python/cpython
X Title: [3.7] bpo-33613, test_semaphore_tracker_sigint: fix race condition (GH-7850) by miss-islington · Pull Request #9055 · python/cpython
Description: Fail test_semaphore_tracker_sigint if no warnings are expected and one is received. Fix race condition when the child receives SIGINT before it can register signal handlers for it. The race condition occurs when the parent calls _semaphore_tracker.ensure_running() (which in turn spawns the semaphore_tracker using _posixsubprocess.fork_exec), the child registers the signal handlers and the parent tries to kill the child. What seem to happen is that in some slow systems, the parent sends the signal to kill the child before the child protects against the signal. (cherry picked from commit ec74d18) Co-authored-by: Pablo Galindo Pablogsal@gmail.com https://bugs.python.org/issue33613
Open Graph Description: Fail test_semaphore_tracker_sigint if no warnings are expected and one is received. Fix race condition when the child receives SIGINT before it can register signal handlers for it. The race conditi...
X Description: Fail test_semaphore_tracker_sigint if no warnings are expected and one is received. Fix race condition when the child receives SIGINT before it can register signal handlers for it. The race conditi...
Opengraph URL: https://github.com/python/cpython/pull/9055
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c3213dd9-599a-d2f5-2297-0ed71a24aac8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8388:27A3BF:24F93D7:32487B3:6A542BA9 |
| html-safe-nonce | 7276ed891799b55d0bc8fa541a2830f28992942da41c57fe3a1fdb0b9b8541b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mzg4OjI3QTNCRjoyNEY5M0Q3OjMyNDg3QjM6NkE1NDJCQTkiLCJ2aXNpdG9yX2lkIjoiMjk1NjM2NDI5ODE1NzU2Njg4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac58c85238a22c5a6d18023932f0b0143dbc9a9858608fc1c5b2c4c12f82f06e |
| hovercard-subject-tag | pull_request:212901733 |
| 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/9055/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | Fail test_semaphore_tracker_sigint if no warnings are expected and one is received. Fix race condition when the child receives SIGINT before it can register signal handlers for it. The race conditi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width