Terry J. Reedy added the comment:

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)."

----------

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

Reply via email to