* src/util.c: retry poll() in EINTR failures, patch by Dave Allan

daniel
This commit is contained in:
Daniel Veillard 2008-12-12 07:29:39 +00:00
parent 762863d728
commit e2d2b7d577
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Fri Dec 12 08:27:44 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/util.c: retry poll() in EINTR failures, patch by Dave Allan
Thu Dec 11 19:10:46 +0100 2008 Jim Meyering <meyering@redhat.com>
build: avoid libvirtd link failure with CFLAGS=-g

View File

@ -473,7 +473,7 @@ virPipeReadUntilEOF(virConnectPtr conn, int outfd, int errfd,
while(!(finished[0] && finished[1])) {
if (poll(fds, ARRAY_CARDINALITY(fds), -1) < 0) {
if (errno == EAGAIN)
if ((errno == EAGAIN) || (errno == EINTR))
continue;
goto pollerr;
}