From c62313bbdc48f72e93fa8196f2fff96ba35e4e9d Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 4 Dec 2009 14:05:29 +0100 Subject: [PATCH] monitor: Accept input only byte-wise This allows to suspend command interpretation and execution synchronously, e.g. during migration. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.11.0