Kaydet (Commit) 97a57220 authored tarafından Neal Norwitz's avatar Neal Norwitz

Fix crash in test on HP-UX. Apparently, it's not possible to delete a lock if

it's held (even by the current thread).

Will backport.
üst a5ccda95
......@@ -667,6 +667,9 @@ test_thread_state(PyObject *self, PyObject *args)
PyThread_acquire_lock(thread_done, 1); /* wait for thread to finish */
Py_END_ALLOW_THREADS
/* Release lock we acquired above. This is required on HP-UX. */
PyThread_release_lock(thread_done);
PyThread_free_lock(thread_done);
Py_RETURN_NONE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment