1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

clvmd: Fix BZ 1140095 by updating lastfd upon EINTR.

This commit is contained in:
Petr Rockai 2015-02-18 12:45:43 +01:00
parent 88411fb6f9
commit 373f855684

View File

@ -899,8 +899,10 @@ static void main_loop(int cmd_timeout)
ret = thisfd->callback(thisfd, buf, sizeof(buf),
csid, &newfd);
/* Ignore EAGAIN */
if (ret < 0 && (errno == EAGAIN || errno == EINTR))
if (ret < 0 && (errno == EAGAIN || errno == EINTR)) {
lastfd = thisfd;
continue;
}
/* Got error or EOF: Remove it from the list safely */
if (ret <= 0) {