aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-27 23:46:43 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-27 23:46:43 +0000
commite5b0bc445ed7edb1738aabb982a387ee38da1655 (patch)
tree1e16d2ed3df380c3cc664d4a5071d5695ad993f6 /monitor.c
parentdff5efc848f5fe3fd8a9a67129a5234fe46ec3bb (diff)
downloadqemu-e5b0bc445ed7edb1738aabb982a387ee38da1655.zip
qemu-e5b0bc445ed7edb1738aabb982a387ee38da1655.tar.gz
qemu-e5b0bc445ed7edb1738aabb982a387ee38da1655.tar.bz2
Rearrange char event handlers to fix CHR_EVENT_RESET.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2361 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 6cb1c38..893040a 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2455,8 +2455,7 @@ void monitor_init(CharDriverState *hd, int show_banner)
monitor_hd = hd;
hide_banner = !show_banner;
- qemu_chr_add_read_handler(hd, term_can_read, term_read, NULL);
- qemu_chr_add_event_handler(hd, term_event);
+ qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL);
}
/* XXX: use threads ? */