mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
* src/util.c: fix virRun() to prevent zombies on pipe errors,
patch by Ryota Ozaki daniel
This commit is contained in:
parent
3b97f7db53
commit
b7071653fa
@ -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>
|
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,
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user