zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Ayappan P2 <ayappap2@in.ibm.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: zsh testcase hangs in AIX
Date: Tue, 30 Jul 2019 11:25:15 -0700	[thread overview]
Message-ID: <CAH+w=7aRs_0+gcTGy7LDRgbBXBX2Lx157o0J4OAgaLEF4=W8aA@mail.gmail.com> (raw)
In-Reply-To: <OFCF3AC7E7.E703D5E1-ON00258447.0050768E-65258447.00511EB2@notes.na.collabserv.com>

On Tue, Jul 30, 2019 at 7:47 AM Ayappan P2 <ayappap2@in.ibm.com> wrote:
>
> We are porting zsh 5.5.1 in AIX.

Why not 5.7.1, the more recent release?

> Any help would be great.

This is testing the coprocess, which uses pipe() and then dups the
resulting descriptors before forking a child process.  This means
there is a situation where you have two-way communication between the
parent and child, so if there is either insufficient buffer space [so
write() blocks] or the buffers are not flushed [so read() blocks] then
the exchange can deadlock.  The test is assuming that pipes have more
than 12 bytes of buffering but are flushed at least on a line-by-line
basis.

      reply	other threads:[~2019-07-30 18:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 14:46 Ayappan P2
2019-07-30 18:25 ` Bart Schaefer [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='CAH+w=7aRs_0+gcTGy7LDRgbBXBX2Lx157o0J4OAgaLEF4=W8aA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=ayappap2@in.ibm.com \
    --cc=zsh-workers@zsh.org \
    /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).