summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-12-04 14:05:29 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-18 11:26:33 -0600
commitc62313bbdc48f72e93fa8196f2fff96ba35e4e9d (patch)
treee6ac8590ed8d5f586207e24381d01090b4752c10 /monitor.c
parentacb6685feaeea0989d29b6f12e96fea48e8ce9d9 (diff)
downloadqemu-c62313bbdc48f72e93fa8196f2fff96ba35e4e9d.tar.gz
monitor: Accept input only byte-wise
This allows to suspend command interpretation and execution synchronously, e.g. during migration. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index ebd0282ce4..96f7876d96 100644
--- a/monitor.c
+++ b/monitor.c
@@ -3864,7 +3864,7 @@ static int monitor_can_read(void *opaque)
{
Monitor *mon = opaque;
- return (mon->suspend_cnt == 0) ? 128 : 0;
+ return (mon->suspend_cnt == 0) ? 1 : 0;
}
typedef struct CmdArgs {