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