public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Cc: Ross Ridge <rridge@csclub.uwaterloo.ca>
Subject: Re: Bash uses lseek while reading from serial device
Date: Mon, 18 Aug 2014 11:21:00 -0000	[thread overview]
Message-ID: <20140818112117.GB2280@calimero.vinschen.de> (raw)
In-Reply-To: <53F12A72.2090805@tlinx.org>

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

On Aug 17 15:19, Linda Walsh wrote:
> Being a bit of a busybody...
> 
> I forwarded this to the bash list and chet responded there...
> 
> so forwarding it back here... not sure what isatty is supposed to do
> with a serial line, let alone one on windows...

On Linux isatty on a descriptor connected to serial line returns 0,
on Cygwin it returned 1 so far.  I fixed both problems here, isatty
on a serial line returns 0 now, and lseek on serial (and, FWIW,
sockets) don't simply return 0 anymore, but rather -1 with errno set
to ESPIPE, as on Linux.

These patches are available in the latest snapshot I just uploaded
to https://cygwin.com/snapshots/

Ross, please give it a try.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2014-08-18 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-16 18:47 Ross Ridge
2014-08-17 22:19 ` Linda Walsh
2014-08-18 11:21   ` Corinna Vinschen [this message]
2014-08-19  2:40 Ross Ridge
2014-08-19  8:35 ` Corinna Vinschen

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=20140818112117.GB2280@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    --cc=rridge@csclub.uwaterloo.ca \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).