char: emit the OPENED event only when a new char connection is opened
authorAmit Shah <amit.shah@redhat.com>
Wed, 7 Oct 2009 13:01:17 +0000 (18:31 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 21 Oct 2009 18:35:37 +0000 (13:35 -0500)
commit91b577aa8752e5dbeaf306a798121fa5ee60714d
tree901bd2991a045256e453d98af0e977226abf3b50
parent14d031cebb3f364ef207ecccb4f0ebacaf470a56
char: emit the OPENED event only when a new char connection is opened

The OPENED event gets sent also when qemu resets its state initially.
The consumers of the event aren't interested in receiving this event
on reset.

Patchworks-ID: 35288
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c
qemu-char.h