qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Restore terminal monitor attributes - addition


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Restore terminal monitor attributes - addition
Date: Wed, 31 Mar 2010 11:42:19 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

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<address@hidden>

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 via email to

[Prev in Thread] Current Thread [Next in Thread]