From: Jan Kiszka Date: Fri, 4 Dec 2009 13:05:29 +0000 (+0100) Subject: monitor: Accept input only byte-wise X-Git-Tag: v0.12.0~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c3f96be38cf798a208c7836a61bfaba7f304d28;p=thirdparty%2Fqemu.git 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) --- 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 {