From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 23 Mar 2014 14:55:21 -0400 To: 9fans@9fans.net Message-ID: <40707a306f2cb1caf97b21f639f8a9f5@brasstown.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] usb/serial control open Topicbox-Message-UUID: ce7d2724-ead8-11e9-9d60-3106f5b1d025 On Sun Mar 23 14:35:52 EDT 2014, paurea@gmail.com wrote: > On Sun, Mar 23, 2014 at 7:09 PM, erik quanstrom = wrote: > > it seems odd to me that opening the ctl file would > > reset some serial parameters. wouldn't it be better > > to leave them alone? > > >=20 > What do you return on read if you don=C2=B4t know the state? > For some devices if you don=C2=B4t set the state, you have no idea. > You can do it in read, but it seemed more intuitive in open at the > time, (and you don=C2=B4t > set the state on every read). so if i do this echo l7>/dev/eiaU6/eiaUctl cat /dev/eiaU6/eiaUctl that's two opens, isn't it? then isn't l reset to 8 by the second open? - erik