[issue31310] semaphore tracker isn't protected against crashes
Thomas Moreau
report at bugs.python.org
Sat Jan 13 13:06:23 EST 2018
Thomas Moreau <thomas.moreau.2010 at gmail.com> added the comment:
> Is it an optimization problem, or does it risk leaking semaphores?
I do not think it risks leaking semaphores as the clean-up is performed by the process which created the Semaphore. So I would say it is more an optimization issue.
It is true that I do not see many use case where the Semaphore might be created by the child process but it was optimized in previous version. If you don't think it is useful, we could avoid sharing the semaphore_tracker pipe to the child process to reduce complexity in the spawning process. Do you think it is worth fixing or it should be simplified?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31310>
_______________________________________
More information about the Python-bugs-list
mailing list