Fixed another regression in the timeout code.
The assignment needs extra parentheses, because it has lower precedence than the relational operator.
This commit is contained in:
parent
032f39cdd6
commit
0025221268
@ -376,7 +376,7 @@ serial_poll_internal (int fd, int queue, long timeout, const struct timeval *tim
|
||||
FD_SET (fd, &fds);
|
||||
|
||||
int rc = 0;
|
||||
while (rc = MYSELECT (fd + 1, &fds, queue, timeout >= 0 ? &tvt : NULL) == -1) {
|
||||
while ((rc = MYSELECT (fd + 1, &fds, queue, timeout >= 0 ? &tvt : NULL)) == -1) {
|
||||
if (errno != EINTR ) {
|
||||
TRACE ("select");
|
||||
return -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user