lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ