From: Jan Kiszka Date: Fri, 4 Dec 2009 13:05:29 +0000 (+0100) Subject: monitor: Accept input only byte-wise X-Git-Tag: v0.13.0-rc0~1900 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c62313bbdc48f72e93fa8196f2fff96ba35e4e9d;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 --- 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 {