diff options
Diffstat (limited to 'Modules/faulthandler.c')
-rw-r--r-- | Modules/faulthandler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 4fc8ebd..4a03eaf 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -678,7 +678,7 @@ faulthandler_dump_traceback_later(PyObject *self, /* Arm these locks to serve as events when released */ PyThread_acquire_lock(thread.running, 1); - if (PyThread_start_new_thread(faulthandler_thread, NULL) == -1) { + if (PyThread_start_new_thread(faulthandler_thread, NULL) == PYTHREAD_INVALID_THREAD_ID) { PyThread_release_lock(thread.running); Py_CLEAR(thread.file); PyMem_Free(header); |