Title: Handle ProcessExit event by lostmsu · Pull Request #1458 · pythonnet/pythonnet · GitHub
Open Graph Title: Handle ProcessExit event by lostmsu · Pull Request #1458 · pythonnet/pythonnet
X Title: Handle ProcessExit event by lostmsu · Pull Request #1458 · pythonnet/pythonnet
Description: This avoids segfault when CLR (in particular Mono) is unloaded before Python stops. What does this implement/fix? Explain your changes. Added a handler to AppDomain.ProcessExit, that fires in the situations like this instead of AppDomain.DomainUnload. This allows Python.NET to remove all slots, that are implemented in C#. When initialized as extension (e.g. Python hosts CLR), release GIL acquired during shutdown so that Python finalization can resume. Does this close any currently open issues? This is (at least one of) the reason of CI test crashes in #1134
Open Graph Description: This avoids segfault when CLR (in particular Mono) is unloaded before Python stops. What does this implement/fix? Explain your changes. Added a handler to AppDomain.ProcessExit, that fires in the ...
X Description: This avoids segfault when CLR (in particular Mono) is unloaded before Python stops. What does this implement/fix? Explain your changes. Added a handler to AppDomain.ProcessExit, that fires in the ...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1458
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6d71a633-de01-279f-d178-fd966be56c69 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BB24:3BF22F:2321B79:316A2B7:6970F333 |
| html-safe-nonce | 816626a86ffa7cbc82fa672b8a45646cc86c24df7701d230a312ab86b7fb96d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjI0OjNCRjIyRjoyMzIxQjc5OjMxNkEyQjc6Njk3MEYzMzMiLCJ2aXNpdG9yX2lkIjoiNzU0ODQ1NDAwMzAzNzI3NDExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 11f7913e3f3309eac04b592f5853cba248f6d85e19f1f7910eeb1465a25858cc |
| hovercard-subject-tag | pull_request:650515047 |
| 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/pythonnet/pythonnet/pull/1458/files |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | This avoids segfault when CLR (in particular Mono) is unloaded before Python stops. What does this implement/fix? Explain your changes. Added a handler to AppDomain.ProcessExit, that fires in the ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b6ca3cb96fa07d8a62b95d681f9dc8fffb49a43f4fea2a5bcac6d8f5107cbf4e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | d2448578278810c7bf94faa67651ef5adb1abfde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width