Message 75977 - Python tracker (original) (raw)

I turns out that for SIGINT, windows creates a new thread. So, the assumption that signals are delivered on the main thread are not valid in general. Therefore, we must initialize the lock pending_lock independently of PyEval_InitThreads(), and also cannot assume that signals are deliverd on the main thread.