[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D34DE89.4030705@gmail.com>
Date: Mon, 17 Jan 2011 16:27:53 -0800
From: Donna Rigas <donna.rigas@...il.com>
To: linux-kernel@...r.kernel.org
Subject: serial port programming question (newbie)
I see lots of serial port programming examples where the
port settings are saved before being changed to the desired settings,
then restored to the original before exiting the program via
tcgetattr and tgsetattr.
I see one example where someone comments that this is not necessary.
Can someone tell me whether or not it is necessary to save and restore the
old settings and if so, why?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists