Author martin.panter
Recipients martin.panter, python-dev, vstinner
Date 2015-12-12.11:26:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449919605.46.0.714040225275.issue25277@psf.upfronthosting.co.za>
In-reply-to
Content
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, ...)
History
Date User Action Args
2015-12-12 11:26:45martin.pantersetrecipients: + martin.panter, vstinner, python-dev
2015-12-12 11:26:45martin.pantersetmessageid: <1449919605.46.0.714040225275.issue25277@psf.upfronthosting.co.za>
2015-12-12 11:26:45martin.panterlinkissue25277 messages
2015-12-12 11:26:44martin.pantercreate