mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* src/util.c: fix virRun() to prevent zombies on pipe errors,
patch by Ryota Ozaki daniel
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
@@ -681,8 +681,11 @@ virRun(virConnectPtr conn,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user