qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Shahar Havivi <shaharh@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Restore terminal monitor attributes - addition
Date: Wed, 31 Mar 2010 11:42:19 -0500	[thread overview]
Message-ID: <4BB37B6B.5030105@codemonkey.ws> (raw)
In-Reply-To: <20100314204111.GA9351@redhat.com>

On 03/14/2010 03:41 PM, Shahar Havivi wrote:
> Patch 2d753894c7553d6a05e8fdbed5f4704398919a35 was missing this check,
> when running monitor as /dev/tty and other serial device, i.e:
>    qemu -monitor /dev/tty -serial /dev/pts/1
>
> Without this patch any serial device will override the monitor stored
> attributes. (monitor is called in main() before any serial device).
>
> Signed-off-by: Shahar Havivi<shaharh@redhat.com>
>    

Applied.  Thanks.

Regards,

Anthony Liguori
> ---
>   qemu-char.c |    4 +++-
>   1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/qemu-char.c b/qemu-char.c
> index 0e25ef3..4bf1e82 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -1002,7 +1002,9 @@ static void tty_serial_init(int fd, int speed,
>              speed, parity, data_bits, stop_bits);
>   #endif
>       tcgetattr (fd,&tty);
> -    oldtty = tty;
> +    if (!term_atexit_done) {
> +        oldtty = tty;
> +    }
>
>   #define check_speed(val) if (speed<= val) { spd = B##val; break; }
>       speed = speed * 10 / 11;
>    

      reply	other threads:[~2010-03-31 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-14 20:41 [Qemu-devel] [PATCH] Restore terminal monitor attributes - addition Shahar Havivi
2010-03-31 16:42 ` Anthony Liguori [this message]

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=4BB37B6B.5030105@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    --cc=shaharh@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).