On 02:48 pm, [EMAIL PROTECTED] wrote:
>Not only that, but current python signal handling is not theorethically
>async safe; there are race conditions in the Py_AddPendingCalls API,
>and it
>just happens to work most of the time.
Twisted has encountered one such issue, described here:
http://twistedmatrix.com/trac/ticket/1997#comment:12
Unfortunately, I don't know enough about signals to suggest or comment
on the solution. Any Python/C wrapper around a syscall which can be
interrupted needs to somehow atomically check for the presence of
pending python signal handlers; I don't know of any POSIX API to do
that.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com