public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* serial port programming question (newbie)
@ 2011-01-18  0:27 Donna Rigas
  2011-01-18  0:41 ` serial port programming second " Donna Rigas
  0 siblings, 1 reply; 3+ messages in thread
From: Donna Rigas @ 2011-01-18  0:27 UTC (permalink / raw)
  To: linux-kernel

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-18 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-18  0:27 serial port programming question (newbie) Donna Rigas
2011-01-18  0:41 ` serial port programming second " Donna Rigas
2011-01-18 10:57   ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox