zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh-Workers <zsh-workers@sunsite.dk>
Subject: Re: Subshell with multios causes hang
Date: Wed, 23 May 2007 08:00:49 -0700	[thread overview]
Message-ID: <070523080049.ZM5965@torch.brasslantern.com> (raw)
In-Reply-To: <20070523111203.299233ec@news01.csr.com>

On May 23, 11:12am, Peter Stephenson wrote:
}
} So what I've done is:

This all sounds sane to me.

I also agree with John's child blocking tweak for the race condition.

} I don't think it's straightforward to set up the multios before we
} fork, since globbing is allowed in multios and that's done after
} forking.

I don't think it's workable to push this up a level in any case. You
can always construct an example where "up a level" is still a subshell
and the problem returns.  To try to have the topmost shell "lift" all
the globs and multios out of the subshells would introduce sequencing
problems with complex commands that expect to be able to create a file
and then glob its name or redirect from it.


      parent reply	other threads:[~2007-05-23 15:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 11:21 John Buddery
2007-05-22 17:29 ` Peter Stephenson
2007-05-23 10:12   ` Peter Stephenson
2007-05-23 11:25     ` John Buddery
2007-05-23 11:50       ` Peter Stephenson
2007-05-23 15:00     ` 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=070523080049.ZM5965@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).