No subject


Wed Feb 14 08:32:59 UTC 2007


a 1100 milisecond timeout is converted into a 1 seconde and 100 microsecond
timeout! This can explain the weird result of the test code.


Modified:
   trunk/uClibc/libc/sysdeps/linux/common/poll.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/poll.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/poll.c	2007-05-25 18:06:02 UTC (rev 18692)
+++ trunk/uClibc/libc/sysdeps/linux/common/poll.c	2007-05-25 18:34:46 UTC (rev 18693)
@@ -36,7 +36,7 @@
 	struct timespec *ts = NULL, tval;
 	if (timeout > 0) {
 		tval.tv_sec = timeout / 1000;
-		tval.tv_nsec = (timeout % 1000) *1000;
+		tval.tv_nsec = (timeout % 1000) * 1000000;
 		ts = &tval;
 	}
 	return ppoll(fds, nfds, ts, NULL);



More information about the uClibc-cvs mailing list