New submission from Jeroen Demeyer:

There is a race condition in calling signal.signal() if the signal arrives 
while (or right before) signal.signal() is being executed: the function 
signal.signal(sig, action) marks the signal "sig" as not tripped. Because of 
this, signals can get lost. Instead, it would be better to call 
PyErr_CheckSignals() to check for pending signals.

----------
components: Interpreter Core
messages: 291561
nosy: jdemeyer
priority: normal
severity: normal
status: open
title: signal.signal should check tripped signals
versions: Python 2.7, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30057>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to