STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> There's a race. If a signal is received while is_tripped is set, 
> the signal number won't be written to the wakeup FD.

Oh, nice catch. The "bug" is not new, Python behaves like that since Python 
3.1. But in Python < 3.3, it doesn't mater because I don't think that wakeup 
was used to watch more than one signal. One trigger "something happened" was 
enough.

The wakeup fd now contains the number of each signal, and so the behaviour has 
to change. I applied your patch and I added a test.

----------

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

Reply via email to