No subject
Sat Dec 1 07:52:20 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:
branches/uClibc_0_9_29/libc/sysdeps/linux/common/poll.c
Changeset:
Modified: branches/uClibc_0_9_29/libc/sysdeps/linux/common/poll.c
===================================================================
--- branches/uClibc_0_9_29/libc/sysdeps/linux/common/poll.c 2008-01-05 17:19:58 UTC (rev 20738)
+++ branches/uClibc_0_9_29/libc/sysdeps/linux/common/poll.c 2008-01-05 17:20:54 UTC (rev 20739)
@@ -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