mirror of https://github.com/xemu-project/xemu.git
Restore terminal monitor attributes - addition
Patch 2d753894c7
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>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c81131db15
commit
d3f822d241
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue