File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,12 @@ _PySemaphore_PlatformWait(_PySemaphore *sema, PyTime_t timeout)
115
115
HANDLE handles [2 ] = { sema -> platform_sem , NULL };
116
116
HANDLE sigint_event = NULL ;
117
117
DWORD count = 1 ;
118
- if (_PyOS_IsMainThread ()) {
118
+ if (_Py_IsMainThread ()) {
119
119
// gh-135099: Wait on the SIGINT event only in the main thread. Other
120
120
// threads would ignore the result anyways, and accessing
121
- // `_PyOS_SigintEvent()` from non-main threads may race with
122
- // interpreter shutdown, which closes the event handle.
121
+ // `_PyOS_SigintEvent()` from non-main threads may race with
122
+ // interpreter shutdown, which closes the event handle. Note that
123
+ // non-main interpreters will ignore the result.
123
124
sigint_event = _PyOS_SigintEvent ();
124
125
if (sigint_event != NULL ) {
125
126
handles [1 ] = sigint_event ;
You can’t perform that action at this time.
0 commit comments