Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Rimmerworld pipeline race
- X-seq: zsh-workers 43420
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Rimmerworld pipeline race
- Date: Sat, 8 Sep 2018 19:40:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1536432035; bh=4flh0AznZlQOvaJGPdLnX2vVk6UQaOUGasQq8DyRrHM=; h=Date:From:To:Subject:In-Reply-To:References; b=WThbiUopfbPqXhrHr+N/I2tucUjvAaRf4+EUpVxWTuuKI56FEp7BcfG+hMd9fBT51 8izYq/CXC0w2xHvwC8pgU0aAGSxEvmf92zT1u5TivCjsyKIF3y4HV/ChYTUuZnk+97 Yn9JG7MRq8A2sEnERwgaN8fQCLwKeWFjgVciWOtt0R6RGxhd4aMA+vKIeyOI/AFLN0 46NWcmud9uMIuXHZn6RoRjC+3UivGp0D/Aht3RGmV4treo22MhGrXaSUGTsrGTedi0 Ds+L79lNvHy/zXzp/dJEVGEsIixk76h0e7dkiZxyBW5fpFdFcypDr+9IYmgo8nnAwr j8p1VJLzlqyVg==
- In-reply-to: <20180908183755.1d187819@pws-HP.localdomain>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20180905200816epcas5p18ce6c49baa637e7d83a769e97c4364fb@epcas5p1.samsung.com> <20180905210740.5a6aec15@pws-HP.localdomain> <20180906090902.1f344e9f@camnpupstephen.cam.scsc.local> <20180906092250eucas1p13d651e07ae627d179dd0701e65f912d6~RxTLztJrP2263722637eucas1p12@eucas1p1.samsung.com> <CAH+w=7ZH1d8RZaHNVhb2k+RqBb_8kgxDurewtk1a6TWG9Vvh5Q@mail.gmail.com> <20180907101852.62415ff9@camnpupstephen.cam.scsc.local> <20180907122145.2af5bcba@camnpupstephen.cam.scsc.local> <20180907150140.46a05880@camnpupstephen.cam.scsc.local> <20180907145828eucas1p2755db3a0eb9725cb3a29121033e77f21~SJhg-Al9h2728227282eucas1p2z@eucas1p2.samsung.com> <577129092.1106031.1536338813897@mail2.virginmedia.com> <CAH+w=7apZTpRJCe_z=fSgiaquJSghUKyWxoBr=GWL5Zj3VzQSQ@mail.gmail.com> <20180908183755.1d187819@pws-HP.localdomain>
Here's a regression test that seems to work, though the job control
tests are rather brittle. Not needed for 5.6.1 as I'm happy this is
currently working.
pws
diff --git a/Test/W02jobs.ztst b/Test/W02jobs.ztst
index 1e7ac76c6..98c9f82be 100644
--- a/Test/W02jobs.ztst
+++ b/Test/W02jobs.ztst
@@ -191,6 +191,14 @@
*>\[2] ? interrupt*sleep*
*>\[1] ? kill*sleep*
+ # Use the shell itself to get interactive output to a terminal.
+ # It's bizarrely difficult to find a standard programme to do this.
+ zpty_start
+ zpty_input "echo | { : | $ZTST_testdir/../Src/zsh -ifc 'print Working'; }"
+ zpty_stop
+0:Regression test for race with process group setting in nested pipeline
+>Working
+
%clean
zmodload -ui zsh/zpty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author