On Sun Mar 23 14:35:52 EDT 2014, pau...@gmail.com wrote: > On Sun, Mar 23, 2014 at 7:09 PM, erik quanstrom <quans...@quanstro.net> 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? > > > > What do you return on read if you don´t know the state? > For some devices if you don´t 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´t > 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