From: Michael Tokarev <mjt@tls.msk.ru>
To: "john.liuli" <john.liuli@huawei.com>, armbru@redhat.com
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
peter.huangpeng@huawei.com, kraxel@redhat.com
Subject: Re: [Qemu-trivial] [PATCH v2] qemu-char: fix terminal crash when using "-monitor stdio -nographic"
Date: Mon, 15 Sep 2014 16:50:28 +0400 [thread overview]
Message-ID: <5416E094.9070500@msgid.tls.msk.ru> (raw)
In-Reply-To: <1410261588-8360-1-git-send-email-john.liuli@huawei.com>
09.09.2014 15:19, john.liuli wrote:
> From: Li Liu <john.liuli@huawei.com>
>
> 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
WARNING: multiple messages have this Message-ID (diff)
From: Michael Tokarev <mjt@tls.msk.ru>
To: "john.liuli" <john.liuli@huawei.com>, armbru@redhat.com
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
peter.huangpeng@huawei.com, kraxel@redhat.com
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] qemu-char: fix terminal crash when using "-monitor stdio -nographic"
Date: Mon, 15 Sep 2014 16:50:28 +0400 [thread overview]
Message-ID: <5416E094.9070500@msgid.tls.msk.ru> (raw)
In-Reply-To: <1410261588-8360-1-git-send-email-john.liuli@huawei.com>
09.09.2014 15:19, john.liuli wrote:
> From: Li Liu <john.liuli@huawei.com>
>
> 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
next prev parent reply other threads:[~2014-09-15 12:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-09 11:19 [Qemu-trivial] [PATCH v2] qemu-char: fix terminal crash when using "-monitor stdio -nographic" john.liuli
2014-09-09 11:19 ` [Qemu-devel] " john.liuli
2014-09-15 12:50 ` Michael Tokarev [this message]
2014-09-15 12:50 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-09-15 12:57 ` Michael Tokarev
2014-09-15 12:57 ` [Qemu-devel] " Michael Tokarev
2014-09-15 13:29 ` Gerd Hoffmann
2014-09-15 13:29 ` [Qemu-devel] " Gerd Hoffmann
2014-09-15 13:33 ` [Qemu-trivial] [Qemu-devel] " Markus Armbruster
2014-09-15 13:33 ` [Qemu-devel] [Qemu-trivial] " Markus Armbruster
2014-09-16 1:40 ` Li Liu
2014-09-16 1:40 ` [Qemu-devel] " Li Liu
2014-09-16 4:20 ` Michael Tokarev
2014-09-16 4:20 ` [Qemu-devel] " Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5416E094.9070500@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=armbru@redhat.com \
--cc=john.liuli@huawei.com \
--cc=kraxel@redhat.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.