Re: Fwd: Bash uses lseek while reading from serial device

2014-08-18 Thread Eric Blake
On 08/17/2014 04:12 PM, Chet Ramey wrote: > Bash uses lseek to the current file position to check this. If the lseek > returns -1/EPIPE, bash assumes the fd is not seekable. If it returns 0, > bash assumes that it can move around freely. Since bash is trying to seek > backwards in the file, stdi

Re: Fwd: Bash uses lseek while reading from serial device

2014-08-17 Thread Chet Ramey
On 8/17/14, 1:47 AM, Linda Walsh wrote: > ?? Could this be a cygwin bug? It's hard to see why cygwin > would start using lseek calls when running bash unless bash called > them... but then tha's not to say something else entirely may be going on as > this is running on Windows... ;-/ The origina

Fwd: Bash uses lseek while reading from serial device

2014-08-16 Thread Linda Walsh
?? Could this be a cygwin bug? It's hard to see why cygwin would start using lseek calls when running bash unless bash called them... but then tha's not to say something else entirely may be going on as this is running on Windows... ;-/ forwarded as I thought it might be of interest here... --