提交 e2d2b7d5 编写于 作者: D Daniel Veillard

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

daniel
上级 762863d7
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
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册