Skip to content

bpo-40091: Fix a hang at fork in the logging module#19416

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:logging_atfork_reinit
Apr 13, 2020
Merged

bpo-40091: Fix a hang at fork in the logging module#19416
vstinner merged 1 commit into
python:masterfrom
vstinner:logging_atfork_reinit

Conversation

@vstinner

@vstinner vstinner commented Apr 7, 2020

Copy link
Copy Markdown
Member

Fix a hang at fork in the logging module: the new private
_at_fork_reinit() method is now used to reinitialize locks at fork in
the child process.

The createLock() method is no longer used at fork.

https://bugs.python.org/issue40091

Fix a hang at fork in the logging module: the new private
_at_fork_reinit() method is now used to reinitialize locks at fork in
the child process.

The createLock() method is no longer used at fork.
@vstinner

vstinner commented Apr 7, 2020

Copy link
Copy Markdown
Member Author

@vsajip, @gpshead: Would you mind to review this change?

@vsajip vsajip added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 11, 2020
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @vsajip for commit f2fc412 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 11, 2020

@vsajip vsajip 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.

Looks OK to me, but I'll add gps as a reviewer in case he spots anything.

@vsajip vsajip requested a review from gpshead April 12, 2020 09:40
@vstinner vstinner merged commit 4c3da78 into python:master Apr 13, 2020
@vstinner vstinner deleted the logging_atfork_reinit branch April 13, 2020 22:25
@vstinner

Copy link
Copy Markdown
Member Author

@gpshead: Your request is still welcomed!

I merged this PR since test_threading is still crashing randomly on AIX which spams my inbox :-) Recent example: https://buildbot.python.org/all/#builders/227/builds/628

If more changes are required, we can still adjust the code later.

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.

4 participants