On 07/25/2014 07:16 AM, Stefan Hajnoczi wrote: > When QEMU is executed as part of a test case or from a script, it is > usually desirable to exit if the parent process terminates. This > ensures that "leaked" QEMU processes do not continue consuming resources > after their parent has died. > > This patch adds the -chardev exit-on-eof option causing socket and pipe > chardevs to exit QEMU upon close. This happens when a parent process > deliberately closes its file descriptor but also when the kernel cleans > up a crashed process. > > Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> > --- > include/sysemu/char.h | 1 + > qapi-schema.json | 23 ++++++++++++++++------- > qemu-char.c | 33 +++++++++++++++++++++++++++------ > qemu-options.hx | 19 +++++++++++++------ > 4 files changed, 57 insertions(+), 19 deletions(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature