summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-05 23:01:51 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-05 23:01:51 +0000
commitcde76ee16adc33f29802596b3499e4fbfcabd8ff (patch)
tree27d4cf1fe75d8690da1ddc11c11002db1988767f /migration.c
parentmonitor: Improve mux'ed console experience (Jan Kiszka) (diff)
downloadqemu-kvm-cde76ee16adc33f29802596b3499e4fbfcabd8ff.tar.gz
qemu-kvm-cde76ee16adc33f29802596b3499e4fbfcabd8ff.tar.bz2
qemu-kvm-cde76ee16adc33f29802596b3499e4fbfcabd8ff.zip
monitor: Introduce MONITOR_USE_READLINE flag (Jan Kiszka)
This allows to create monitor terminals that do not make use of the interactive readline back-end but rather send complete commands. The pass-through monitor interface of the gdbstub will be an example. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6717 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/migration.c b/migration.c
index 15639c177..b3904b2d4 100644
--- a/migration.c
+++ b/migration.c
@@ -128,8 +128,11 @@ void do_info_migrate(Monitor *mon)
void migrate_fd_monitor_suspend(FdMigrationState *s)
{
s->mon_resume = cur_mon;
- monitor_suspend(cur_mon);
- dprintf("suspending monitor\n");
+ if (monitor_suspend(cur_mon) == 0)
+ dprintf("suspending monitor\n");
+ else
+ monitor_printf(cur_mon, "terminal does not allow synchronous "
+ "migration, continuing detached\n");
}
void migrate_fd_error(FdMigrationState *s)