Commit ab77fafc authored by Julien Cristau's avatar Julien Cristau

Fix wait_for_fd with > 1s timeouts

parent d2a64892
......@@ -249,7 +249,7 @@ wait_for_fd(int direction, int fd, int msecs)
struct timeval tv;
tv.tv_sec = msecs / 1000;
tv.tv_usec = msecs * 1000;
tv.tv_usec = (msecs % 1000) * 1000;
FD_ZERO(&fds);
FD_SET(fd, &fds);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment