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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/vg_libpthread.c b/vg_libpthread.c
index bc9a0e8..171e283 100644
--- a/vg_libpthread.c
+++ b/vg_libpthread.c
@@ -1295,7 +1295,7 @@
    /* 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"); */