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

* src/util.c: fix virRun() to prevent zombies on pipe errors,

  patch by Ryota Ozaki
daniel
上级 3b97f7db
Tue Mar 31 14:25:18 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/util.c: fix virRun() to prevent zombies on pipe errors,
patch by Ryota Ozaki
Fri Mar 27 11:44:22 GMT 2009 Daniel P. Berrange <berrange@redhat.com> Fri Mar 27 11:44:22 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_driver.c: Don't try to query balloon if guest * src/qemu_driver.c: Don't try to query balloon if guest
......
...@@ -681,8 +681,11 @@ virRun(virConnectPtr conn, ...@@ -681,8 +681,11 @@ virRun(virConnectPtr conn,
goto error; goto error;
} }
if (virPipeReadUntilEOF(conn, outfd, errfd, &outbuf, &errbuf) < 0) if (virPipeReadUntilEOF(conn, outfd, errfd, &outbuf, &errbuf) < 0) {
while (waitpid(childpid, &exitstatus, 0) == -1 && errno == EINTR)
;
goto error; goto error;
}
if (outbuf) if (outbuf)
DEBUG("Command stdout: %s", outbuf); DEBUG("Command stdout: %s", outbuf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册