Message120395
Signal handlers that can change errno, must restore it.
I enclose a patch for <2.7, 3.2a3>/Modules/signalmodule.c
which also rearranges the code to make this a bit easier.
The patch does if (errno != save_errno) errno = save_errno;
instead of just errno = save_errno;
in case it's less thread-safe to write than to read errno,
which would not surprise me but may be pointless paranoia.
I don't know what needs to be done on non-Unix systems,
like Windows' WSAError stuff. |
|
Date |
User |
Action |
Args |
2010-11-04 12:18:18 | hfuru | set | recipients:
+ hfuru |
2010-11-04 12:18:18 | hfuru | set | messageid: <1288873098.65.0.47223283391.issue10311@psf.upfronthosting.co.za> |
2010-11-04 12:18:17 | hfuru | link | issue10311 messages |
2010-11-04 12:18:17 | hfuru | create | |
|