zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: zpty non-functional?
Date: Mon, 26 Aug 2013 17:54:21 -0700	[thread overview]
Message-ID: <130826175421.ZM16713@torch.brasslantern.com> (raw)
In-Reply-To: <20130826203305.013d0ca2@pws-pc.ntlworld.com>

On Aug 26,  8:33pm, Peter Stephenson wrote:
}
} Here's a synch, as well as a test that was showing up the problem

It just occurred to me that if the syncch [why two c?] trick solves
the race, then it's probably not even necessary to write a byte on
the pipe -- just close it in the child, and the parent will get EOF.

On the other hand it also occurred to me that this might not always
solve the race.  It'd be better if syncch could be close-on-exec ...
except that execode() might not actually do an exec() ...

So this is probably the best we can do.

-- 
Barton E. Schaefer


  reply	other threads:[~2013-08-27  0:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-24 12:44 Valodim Skywalker
2013-08-24 20:10 ` Bart Schaefer
2013-08-24 21:48   ` Peter Stephenson
2013-08-25  0:01     ` Bart Schaefer
2013-08-25 18:59       ` Peter Stephenson
2013-08-25 22:01         ` Bart Schaefer
2013-08-26 19:33           ` Peter Stephenson
2013-08-27  0:54             ` Bart Schaefer [this message]
2013-08-27 12:01               ` Peter Stephenson
2013-08-27 14:31                 ` Bart Schaefer

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=130826175421.ZM16713@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).