This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hfuru
Recipients hfuru
Date 2010-11-04.12:18:16
SpamBayes Score 4.838317e-06
Marked as misclassified No
Message-id <1288873098.65.0.47223283391.issue10311@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-11-04 12:18:18hfurusetrecipients: + hfuru
2010-11-04 12:18:18hfurusetmessageid: <1288873098.65.0.47223283391.issue10311@psf.upfronthosting.co.za>
2010-11-04 12:18:17hfurulinkissue10311 messages
2010-11-04 12:18:17hfurucreate