STINNER Victor added the comment:
Ooops, I looked at the wrong function. signal_handler() saves/restores errno.
trip_signal() is a function called by signal_handler(). The code is correct.
--
resolution: -> not a bug
status: open -> closed
___
Pytho
New submission from STINNER Victor:
The signal module has a wakefd feature which calls write(fd) in a signal
handler, but the signal handler replaces errno without saving/restoring it.
See "Practice 4" in this article:
http://www.ibm.com/developerworks/linux/library/l-reent/index.html
Attached