[issue10311] Signal handlers must preserve errno
Hallvard B Furuseth
report at bugs.python.org
Thu Nov 4 14:45:04 CET 2010
Hallvard B Furuseth <h.b.furuseth at usit.uio.no> added the comment:
Amaury Forgeot d'Arc writes:
> This issue is not really relevant on Windows:
> - signals are actually run in a new thread specially created.
> - errno is a thread-local variable; its value is thus local to the
> signal handler, same for WSAGetLastError().
Nice. Then I suggest a config macro for whether this is needed.
Either a test for windows, or an autoconf thing in case some Unixes
are equally sensible. (Linux isn't, I checked.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10311>
_______________________________________
More information about the Python-bugs-list
mailing list