Martin Panter added the comment:

Did you consider blocking the signal before spawning the child? I haven’t used 
signals much, so I could be wrong, but it seems sigwaitinfo() is meant to be 
called with the signal blocked. Something like this:

pthread_sigmask(SIG_BLOCK, {signum})
try:
    t0 = ...
    ...  # Spawn child, call sigwaitinfo(), etc
finally:
    pthread_sigmask(SIG_UNBLOCK, {signum})
self.assertGreaterEqual(dt, ...)

----------
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25277>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to