master - clvmd: Fix BZ 1140095 by updating lastfd upon EINTR.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=373f8556847a8fdbed3cedd687691d716dca4c5a Commit: 373f8556847a8fdbed3cedd687691d716dca4c5a Parent: 88411fb6f97937c6cac573e2720ae30fafe96761 Author: Petr Rockai <[email protected]> AuthorDate: Wed Feb 18 12:45:43 2015 +0100 Committer: Petr Rockai <[email protected]> CommitterDate: Wed Feb 18 12:45:43 2015 +0100
clvmd: Fix BZ 1140095 by updating lastfd upon EINTR.
--- daemons/clvmd/clvmd.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
daemons/clvmd/clvmd.c +3 -1
@@ -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 ) {