[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] qemu-char: fix terminal crash
Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] qemu-char: fix terminal crash when using "-monitor stdio -nographic"
Mon, 15 Sep 2014 15:33:21 +0200
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Michael Tokarev <address@hidden> writes:
> 15.09.2014 16:50, Michael Tokarev пишет:
>> 09.09.2014 15:19, john.liuli wrote:
>>> From: Li Liu <address@hidden>
>>> 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... :)
> And oh, the commit comment -- it is not 'terminal crash', it is
> 'terminal misbehavor' or something like that. Terminal does not
> crash, it just does not have proper settings after qemu exits.
qemu-char: Permit only a single "stdio" character device
When more than one is used, the terminal settings aren't restored
correctly on exit. Fixable. However, such usage makes no sense,
because the users race for input, so outlaw it instead.
If you want to connect multiple things to stdio, use the mux
With the rename proposed by Michael:
Reviewed-by: Markus Armbruster <address@hidden>