zsh-workers
 help / color / mirror / code / Atom feed
From: yamagata@nwgpc.kek.jp
To: zsh-workers@math.gatech.edu
Subject: blocking read stdin patch (Re: zsh-workers: zsh-3.1.4)
Date: Thu, 23 Jul 1998 17:11:49 +0900	[thread overview]
Message-ID: <19980723171149T.yamagata@nwgpc.kek.jp> (raw)
In-Reply-To: Your message of "Mon, 1 Jun 1998 09:19:24 +0100" <199806010819.JAA27897@diamond.tao.co.uk>

Hello,

In message <199806010819.JAA27897@diamond.tao.co.uk>,
Zefram wrote
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Zsh version 3.1.4 has been released, and an announcement posted to
> zsh-announce.

(snip)

> 3950  set blocking read on stdin
>     I'm rather dubious about this EWOULDBLOCK business.  I think this
>     should be EAGAIN.  I'm also a bit suspicious about where the blocking
>     status is being changed, but I haven't examined it in detail yet.

(snip)

In 4.2BSD, non-blocking read will be return by EWOULDBLOCK,
But in POSIX it should be EAGAIN.

Some OS (like SunOS4.1.X or Ultrix) may return both error.
It seems to be decided by compile environment
or what flag was used for blocking read.

In SunOS 4.1.X,
When set O_NONBLOCK, will be EWOULDBLOCK,
When set O_NDELAY, will be EAGAIN.

In 4.4BSD and Digital UNIX(3.2 and 4.0),
EWOULDBLOCK and EAGAIN are same value,
thus Zoltan's patch works fine.

				yamagata


      parent reply	other threads:[~1998-07-23  8:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-01  8:19 zsh-workers: zsh-3.1.4 Zefram
1998-06-01 15:56 ` Bart Schaefer
1998-06-01 16:07   ` Zefram
1998-06-01 16:33   ` Timothy J Luoma
1998-06-01 18:09     ` Bart Schaefer
1998-06-01 18:35       ` Zoltan Hidvegi
1998-06-02  7:21     ` Zefram
1998-06-02 16:08   ` Chet Ramey
1998-06-01 21:53 ` Wayne Davison
1998-06-02  7:31   ` Zefram
1998-06-02  9:50     ` Bart Schaefer
1998-07-23  8:11 ` yamagata [this message]

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=19980723171149T.yamagata@nwgpc.kek.jp \
    --to=yamagata@nwgpc.kek.jp \
    --cc=zsh-workers@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).