diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-30 16:45:21 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-30 16:45:21 +0000 |
commit | ad8efe4b6e27f0ea87d6510c11ae11377eade93d (patch) | |
tree | 414742411322b22605905daa9c983196d3f40338 /monitor.c | |
parent | 58a770f3a4b44d59ea07cfd40a05aa450c045c8f (diff) | |
download | qemu-ad8efe4b6e27f0ea87d6510c11ae11377eade93d.zip qemu-ad8efe4b6e27f0ea87d6510c11ae11377eade93d.tar.gz qemu-ad8efe4b6e27f0ea87d6510c11ae11377eade93d.tar.bz2 |
Fix a crash with monitor input arriving before readline_start has been called
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3749 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2583,6 +2583,8 @@ void monitor_init(CharDriverState *hd, int show_banner) hide_banner = !show_banner; qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL); + + readline_start("", 0, monitor_handle_command1, NULL); } /* XXX: use threads ? */ |