This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Mark, eryksun, terry.reedy
Date 2017-03-28.13:37:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490708270.92.0.433700455941.issue29926@psf.upfronthosting.co.za>
In-reply-to
Content
Eryk, would the addition go before or after "trip_signal(SIGINT);"

I posted "Issue with _thread.interrupt_main (29926)" on pydev list.  Steven D'Aprano verified delayed response on *nix.

Martin Panter said
"Looking at the implementation, _thread.interrupt_main just calls PyErr_SetInterrupt. It doesn’t appear to send a signal. I played with “strace” and couldn’t see any evidence of a signal. I guess it just sets a flag that will be polled. To actually interrupt the “sleep” call, you might need to use “pthread_kill” or similar (at least on Unix)."
History
Date User Action Args
2017-03-28 13:37:50terry.reedysetrecipients: + terry.reedy, Mark, eryksun
2017-03-28 13:37:50terry.reedysetmessageid: <1490708270.92.0.433700455941.issue29926@psf.upfronthosting.co.za>
2017-03-28 13:37:50terry.reedylinkissue29926 messages
2017-03-28 13:37:50terry.reedycreate