[PATCH] When setting the serial port, the previous settings need to be preserved.

Ryan Raasch ryan.raasch at gmail.com
Mon Oct 19 10:18:38 PDT 2009


When setting the serial terminal before starting the daemon, this will
prevent the overwriting of settings.

Ryan

---
 gatchat/gattty.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gatchat/gattty.c b/gatchat/gattty.c
index 63d26d4..ed0fadf 100644
--- a/gatchat/gattty.c
+++ b/gatchat/gattty.c
@@ -220,6 +220,7 @@ static int open_device(const char *tty, GHashTable *options)
 	if (fd < 0)
 		return -1;

+	tcgetattr(fd,&ti);
 	tcflush(fd, TCIOFLUSH);
 	tcsetattr(fd, TCSANOW, &ti);

-- 
1.6.4.GIT


More information about the ofono mailing list