[New-bugs-announce] [issue12060] Python doesn't support real time signals

STINNER Victor report at bugs.python.org
Wed May 11 23:57:42 CEST 2011

New submission from STINNER Victor <victor.stinner at haypocalc.com>:

If a real time signal is raised 2 times whereas the signal is blocked, unblock the signal will call the signal handler twice. The C signal handler of the Python signal module only stores a boolean to say if the Python signal handler should be called or not in Py_CheckSignals().

If the C signal handler is called twice, the Python signal handler is only called once.

Attached patch is a draft to fix this issue. The patch is not completly safe.

components: Interpreter Core
files: rt_signal.patch
keywords: patch
messages: 135808
nosy: haypo
priority: normal
severity: normal
status: open
title: Python doesn't support real time signals
versions: Python 3.3
Added file: http://bugs.python.org/file21976/rt_signal.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list