diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-20 08:58:28 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-20 09:19:51 (GMT) |
commit | 84abdaa41e6c3bde6ac653e02bd72300b6681572 (patch) | |
tree | bcf074accb5755987f5aeaaaa0f3c3fadf406d42 /src/gui/graphicsview | |
parent | d3a2ba13342880e2912b9a669c8b6f8bc217eb56 (diff) | |
download | Qt-84abdaa41e6c3bde6ac653e02bd72300b6681572.zip Qt-84abdaa41e6c3bde6ac653e02bd72300b6681572.tar.gz Qt-84abdaa41e6c3bde6ac653e02bd72300b6681572.tar.bz2 |
Fix crash when native socket notifiers would send a notification after being disabled.
Spend a lot of time looking at this and at the CoreFoundation source
code and it seems that we really do get a notification even after the
notifier is disabled. I suspect there's a race condition between when we
disable the socket notifier, but the kernel flags it as needing a read,
then CoreFoundation just sends the notification without checking if the
CFSocket has been disabled. No further notifications come of course.
Since this breaks the invariant that was set in the assert, I'm
replacing it with an if check.
Task-number: 258198
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/graphicsview')
0 files changed, 0 insertions, 0 deletions