15.09.2014 16:50, Michael Tokarev пишет: > 09.09.2014 15:19, john.liuli wrote: >> From: Li Liu <john.li...@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... :)
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. /mjt