[issue10311] Signal handlers must preserve errno
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Nov 4 14:57:16 CET 2010
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
> 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.)
I'm quite sure that all Unixes invoke signal handlers in some existing thread. So even if errno is thread-local, it needs to be saved and restored.
OTOH this is really a micro optimization.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10311>
_______________________________________
More information about the Python-bugs-list
mailing list