[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

Steve Dower report at bugs.python.org
Fri Mar 6 01:26:43 CET 2015


Steve Dower added the comment:

Added a patch that disables the invalid parameter handler in new_threadstate() so that all Python threads are protected from termination.

_PyVerify_fd is still moved into fileutils.c, but _Py_BEGIN/END_SUPPRESS_IPH and _Py_VERIFY_FD are gone. For VC14, _PyVerify_fd simply calls _get_osfhandle and checks the result.

As it's a hack, I haven't updated any documentation to draw attention to this, but I hope this is simpler enough that we can get Windows builds going again.

----------
Added file: http://bugs.python.org/file38350/23524_hack.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23524>
_______________________________________


More information about the Python-bugs-list mailing list