From: Hans de Goede Date: Tue, 26 Mar 2013 10:08:00 +0000 (+0100) Subject: qemu-char: add_handlers: Don't re-send the be_open event on unregister X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~2243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a59bcd31c91397f8c67b6902e7716d626c5070e6;p=sdk%2Femulator%2Fqemu.git qemu-char: add_handlers: Don't re-send the be_open event on unregister Resending the be_open event only is useful when a frontend is registering, not when it is unregistering. Signed-off-by: Hans de Goede Message-id: 1364292483-16564-9-git-send-email-hdegoede@redhat.com Signed-off-by: Anthony Liguori --- diff --git a/qemu-char.c b/qemu-char.c index ca9381b..dee623e 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -241,7 +241,7 @@ void qemu_chr_add_handlers(CharDriverState *s, /* We're connecting to an already opened device, so let's make sure we also get the open event */ - if (s->be_open) { + if (fe_open && s->be_open) { qemu_chr_be_generic_open(s); } }