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 dbd5ee0 commit 0872afcCopy full SHA for 0872afc
1 file changed
Modules/faulthandler.c
@@ -101,7 +101,6 @@ static int
101
faulthandler_get_fileno(PyObject **file_ptr)
102
{
103
PyObject *result;
104
- long fd_long;
105
PyObject *file = *file_ptr;
106
107
if (file == NULL || file == Py_None) {
@@ -1234,7 +1233,7 @@ faulthandler__fatal_error_c_thread_impl(PyObject *module)
1234
1233
PyThread_acquire_lock(lock, WAIT_LOCK);
1235
1236
tid = PyThread_start_new_thread(faulthandler_fatal_error_thread, lock);
1237
- if (tid == -1) {
+ if (tid == PYTHREAD_INVALID_THREAD_ID) {
1238
PyThread_free_lock(lock);
1239
PyErr_SetString(PyExc_RuntimeError, "unable to start the thread");
1240
return NULL;
0 commit comments