Antoine Pitrou <pit...@free.fr> added the comment:

Actually, there is a problem in Lock.acquire and RLock.acquire. If a signal 
occurs and signal handling returns successfully, acquiring the lock will be 
retried without decrementing the timeout first. Therefore, we may end up 
waiting longer than the user wanted.

I'm not sure how to tackle that: either we accept that an incoming signal will 
make the wait longer, or we fix it by properly decrementing the timeout (which 
will complicate things a bit, especially for cross-platform time querying - but 
see issue9079 which might help us).

----------

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

Reply via email to