mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 05:10:23 +00:00
Fix really stupid error in computation of timeout point in nonblocking
poll(). After this change, Mozilla-0.9.2.1 and Galeon 0.11.3 finally behave reasonably on my box. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@165
This commit is contained in:
@@ -1295,7 +1295,7 @@ int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout)
|
||||
/* If a timeout was specified, set ms_end to be the end wallclock
|
||||
time. Easy considering that __timeout is in milliseconds. */
|
||||
if (__timeout > 0) {
|
||||
ms_end += (unsigned int)__timeout;
|
||||
ms_end = ms_now + (unsigned int)__timeout;
|
||||
}
|
||||
|
||||
/* fprintf(stderr, "MY_POLL: before loop\n"); */
|
||||
|
||||
@@ -1295,7 +1295,7 @@ int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout)
|
||||
/* If a timeout was specified, set ms_end to be the end wallclock
|
||||
time. Easy considering that __timeout is in milliseconds. */
|
||||
if (__timeout > 0) {
|
||||
ms_end += (unsigned int)__timeout;
|
||||
ms_end = ms_now + (unsigned int)__timeout;
|
||||
}
|
||||
|
||||
/* fprintf(stderr, "MY_POLL: before loop\n"); */
|
||||
|
||||
@@ -1295,7 +1295,7 @@ int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout)
|
||||
/* If a timeout was specified, set ms_end to be the end wallclock
|
||||
time. Easy considering that __timeout is in milliseconds. */
|
||||
if (__timeout > 0) {
|
||||
ms_end += (unsigned int)__timeout;
|
||||
ms_end = ms_now + (unsigned int)__timeout;
|
||||
}
|
||||
|
||||
/* fprintf(stderr, "MY_POLL: before loop\n"); */
|
||||
|
||||
Reference in New Issue
Block a user