summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qstylefactory.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-03-25 09:42:02 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-03-25 09:42:02 (GMT)
commit80d4b51b173d9ea9a4a56230d026a2e91bb04f50 (patch)
tree4e76f31db2c8a3b410e94e89d6c13ee80d5c10b4 /src/gui/styles/qstylefactory.h
parente34a24dcd49c055741c9a5914479842021175551 (diff)
downloadQt-80d4b51b173d9ea9a4a56230d026a2e91bb04f50.zip
Qt-80d4b51b173d9ea9a4a56230d026a2e91bb04f50.tar.gz
Qt-80d4b51b173d9ea9a4a56230d026a2e91bb04f50.tar.bz2
Fix a small mistake in recalculating the timeout in case we get
interrupted twice by a signal. If we're interrupted only once, there's no problem. If we're interrupted twice, we subtract the elapsed time since the beginning from the remaining time, so this won't work. The correct thing is to recalculate from the original timeout value. This is extremely difficult to test, since it requires that the select(2) call be interrupted twice by signals. The only way to do this is by sending two signals to a program from another program (or threads, with pthread_kill(3)) with less than half of the time left, then send data to cause the loop to exit with success. Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Diffstat (limited to 'src/gui/styles/qstylefactory.h')
0 files changed, 0 insertions, 0 deletions