patch by Ryota Ozaki
daniel
+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>
* src/qemu_driver.c: Don't try to query balloon if guest
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;
+ }
if (outbuf)
DEBUG("Command stdout: %s", outbuf);