public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Donna Rigas <donna.rigas@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: serial port programming question (newbie)
Date: Mon, 17 Jan 2011 16:27:53 -0800	[thread overview]
Message-ID: <4D34DE89.4030705@gmail.com> (raw)

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?

             reply	other threads:[~2011-01-18  0:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18  0:27 Donna Rigas [this message]
2011-01-18  0:41 ` serial port programming second question (newbie) Donna Rigas
2011-01-18 10:57   ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D34DE89.4030705@gmail.com \
    --to=donna.rigas@gmail.com \
    --cc=donna.rigas@dynonavionics.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox