We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffc860 commit 7882c7dCopy full SHA for 7882c7d
1 file changed
Modules/_testcapimodule.c
@@ -3338,13 +3338,13 @@ static PyObject *
3338
finalize_thread_hang(PyObject *self, PyObject *callback)
3339
{
3340
// WASI builds some pthread stuff but doesn't have these APIs today?
3341
-#if defined(_POSIX_THREADS) && !defined(__wasi__)
+#if defined(_POSIX_THREADS) && !defined(__wasi__) && !defined(__OS2__)
3342
pthread_cleanup_push(finalize_thread_hang_cleanup_callback, NULL);
3343
#endif
3344
PyObject_CallNoArgs(callback);
3345
// Should not reach here.
3346
Py_FatalError("thread unexpectedly did not hang");
3347
3348
pthread_cleanup_pop(0);
3349
3350
Py_RETURN_NONE;
0 commit comments