Received: from eggs.gnu.org ([2001:4830:134:3::10]:48840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVjw-0004TL-Dn for qemu-devel@nongnu.org; Mon, 15 Sep 2014 08:50:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTVjr-0006GV-BB for qemu-devel@nongnu.org; Mon, 15 Sep 2014 08:50:44 -0400 Message-ID: <5416E094.9070500@msgid.tls.msk.ru> Date: Mon, 15 Sep 2014 16:50:28 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1410261588-8360-1-git-send-email-john.liuli@huawei.com> In-Reply-To: <1410261588-8360-1-git-send-email-john.liuli@huawei.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] qemu-char: fix terminal crash when using "-monitor stdio -nographic" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "john.liuli" , armbru@redhat.com Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, peter.huangpeng@huawei.com, kraxel@redhat.com 09.09.2014 15:19, john.liuli wrote: > From: Li Liu > > Eeay to reproduce, just try "qemu -monitor stdio -nographic" > and type "quit", then the terminal will be crashed. > > There are two pathes try to call tcgetattr of stdio in vl.c: This looks reasonable. Except of one thing -- how about renaming stdio_is_ready to stdio_in_use? (I can do that when applying, no need to resend anythnig). Because, well, stdio_is_ready is not obvious at all, at least to me... :) Thank you for fixing this! /mjt