Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: W02jobs.ztst: huge delay if output is piped (macOS)
- X-seq: zsh-workers 54902
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: W02jobs.ztst: huge delay if output is piped (macOS)
- Date: Fri, 3 Jul 2026 16:31:24 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JWsN261zaGcSQz7r8EJFkS9hFD5KfdbiQVO5syBA7rQ=; fh=MkxAKNAVR+AEansnzvPuuXgLNW3YSDJhci0JB6N0z6s=; b=lqlHXOlFWWXSyGUNsJnJ03kzS0s8HTjwqoMLriGv2K0GWPjKrcZeAFEoUT7ZeLf6fR w0Yf66ZeaZ9+5Mxy/f39FwjaULQOLQl0wsAzAYO0o8kwNIKzlcDXmxkxHe5pxPlLmIlj cRNEfqYzocFX7fMOEio0twREGwphVtsE84IEKpRQIDCAAIiCLQqlnUsS+F1D71S+inXo 8hZlv5LVFFQOtjxCIFQItHBx2JXfdhVOHxXxZZK7H8kfSEcwvmXfroTqM2TlXC1mkXY0 ESWE8I1SgGdICI5ktqRgO9ucketXiEp0ERlTldurRhOcR9Buczh5shVMEyHnGWbyjWXc 3Urg==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1783121497; cv=none; d=google.com; s=arc-20260327; b=YyfKC/V/YUo6u8okQJJ6iUKYQGScP4BRXHNCFQJ54vxH85JS/A2ffS9NQoSgNKLUcX FpAopAHIHGbsSF3cl1CRINBjsApifyuwnu3tArwY6edWnwHr99e5YIbP2rZ8/xTiAiMI OGtDK4ry9LCTJoumYDLQVLA6o3oB6AmLrPMPkk9No72Pv+E1+nLIsC0QK/y+xfswg1wS WwxO1VkpScWt+bdiUYFEXEf0fvRyIOvNQSruEy0nztNXYxmg1t2r2ZK5vUHvgBQ2okdG z9Aawx8g0PMW2FV6tgbM1mAr2NEbWgFnAO77ETPSqvbAvpoDk5vjX+Ikpv1LIXdgAhMs rGkg==
- Archived-at: <https://zsh.org/workers/54902>
- In-reply-to: <CAHYJk3TxXtUsrWKKtSfiDOy3v7NAtnqJstNdtLdp+iOijZ4xJA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <61C9F431-C8C5-4606-8CCB-08DA53999784@kba.biglobe.ne.jp> <CAHYJk3TxXtUsrWKKtSfiDOy3v7NAtnqJstNdtLdp+iOijZ4xJA@mail.gmail.com>
On Fri, Jul 3, 2026 at 10:44 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> % make TESTNUM=W02 check | cat
> ... test output ...
> ***********************************************
> 1 successful test script, 0 failures, 0 skipped
> ***********************************************
> make[1]: Leaving directory '/.../zsh/Test'
> [this is where the 100 second delay happens]
I tried
% make TESTNUM=W02 check | strace cat
on Ubuntu 24.04.4 and I don't see the delay. Nor do I see any
reference to fd=12 in the "cat" child.
> I agree that there doesn't seem to be a
> reason that this sleep should be so long, though
The test needs sleep to survive long enough for the shell driving zpty
to read back the PID, send a "kill -STOP", and then attempt "fg %-"
and read the output of "jobs". It probably doesn't need "sleep 100"
but a single-digit sleep might not be long enough.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author