Maybe don't trust threading.current_thread() to tell us whether we're in the main thread for signal handling purposes #461
As @SunDwarf discovered (chat log), in some extremely weird circumstances it's possible to be in the main thread, yet
Specifically the case that broke is:
This will be fixed in the next version of gevent, but that's not out yet. (See: gevent/gevent#984) Also it's possible that there are other cases where the threading and signal modules end up with different ideas of whether they're running in the main thread? It seems hard to imagine though. So it's not entirely clear whether this is worth fixing.
The fix would be to stop checking
The text was updated successfully, but these errors were encountered: