Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 27, 2020

test_reinit_tls_after_fork() of test_threading now checks if a child
process crashed in os.fork().

https://bugs.python.org/issue40068

@vstinner
Copy link
Member Author

@pablogsal: We talked about such idea ;-)

Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for working on this :)

@vstinner
Copy link
Member Author

Hum, I found more code than what I expected which convert a waitpid status to a returncode, so I proposed to even add the helper function directly to the os module: https://bugs.python.org/issue40094

test_reinit_tls_after_fork() of test_threading now checks if a child
process crashed in os.fork().
@vstinner
Copy link
Member Author

I rebased my PR on master and reverted changes in _bootsubproces and test.support: I rewrote these changes as a new public function in PR #19201.

@vstinner vstinner changed the title bpo-40068: test_reinit_tls_after_fork() detects crashes [WIP] bpo-40068: test_reinit_tls_after_fork() detects crashes Mar 31, 2020
@vstinner
Copy link
Member Author

I'm working on a different approach: PR #19254.

@vstinner
Copy link
Member Author

I merged PR #19260 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants