From 1c3f96be38cf798a208c7836a61bfaba7f304d28 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 (cherry picked from commit c62313bbdc48f72e93fa8196f2fff96ba35e4e9d) --- monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.c b/monitor.c index ebd0282ce4e..96f7876d965 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.39.5