Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zpty non-functional?



On Mon, 26 Aug 2013 17:54:21 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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.

syncch is "sync ch[ar]".

All I've added is the read and write --- the pipe was there anyway as
the key part of the master/slave interface.  So this is about as minimal
as we get, up to tests and loops I may have added that we don't really
need.

pws



Messages sorted by: Reverse Date, Date, Thread, Author