select() fix. No wonder why ffserver didn't work =)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1825 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -42,7 +42,7 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
|
|||||||
|
|
||||||
tv.tv_sec = timeout / 1000;
|
tv.tv_sec = timeout / 1000;
|
||||||
tv.tv_usec = 1000 * (timeout % 1000);
|
tv.tv_usec = 1000 * (timeout % 1000);
|
||||||
rc = select(n, &read_set, &write_set, &exception_set, &tv);
|
rc = select(n+1, &read_set, &write_set, &exception_set, &tv);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user