Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed error check for timeout on sockets (poll)
  • Loading branch information
9EOR9 committed Jan 30, 2017
1 parent e714cf4 commit 8b36952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmariadb/violite.c
Expand Up @@ -248,7 +248,7 @@ int vio_wait_or_timeout(Vio *vio, my_bool is_read, int timeout)

do {
rc= poll(&p_fd, 1, timeout);
} while (rc == -1 || errno == EINTR);
} while (rc == -1 && errno == EINTR);

if (rc == 0)
errno= ETIMEDOUT;
Expand Down

0 comments on commit 8b36952

Please sign in to comment.