[issue11867] Make test_mailbox deterministic

Charles-François Natali report at bugs.python.org
Sun Dec 18 13:02:16 CET 2011


Charles-François Natali <neologix at free.fr> added the comment:

There was a recent buildbot failure on test_lock_conflict() because of a race.
Looking at your patch, I must be missing something, but why not simply use a multiprocessing condition to signal when the parent process has acquired the lock?
Otherwise you could simply use a pipe or a socketpair, it would be much simpler.
Also, there's a race: if the parent process calls connect() before the child calls listen(), he'll get ECONNREFUSED.

----------
nosy: +neologix

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11867>
_______________________________________


More information about the Python-bugs-list mailing list