◐ Shell
clean mode source ↗

bpo-33613: multiprocessing semtracker uses sigmask by vstinner · Pull Request #8500 · python/cpython

Conversation

@vstinner

The multiprocessing semaphore tracker now uses
signal.pthread_sigmask() to block signals before spawning the child
to queue the signals before we modify the signal handlers to ignore
some signals.

https://bugs.python.org/issue33613

The multiprocessing semaphore tracker now uses
signal.pthread_sigmask() to block signals before spawning the child
to queue the signals before we modify the signal handlers to ignore
some signals.

pablogsal

Choose a reason for hiding this comment

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

LGTM I can confirm that this works and solves the problem that #7850 is solving. Should I push the fix for the test in this PR and close #7850 or should we apply this one in #7850?

@vstinner

I prefer your PR since it also fix tests.

Labels