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 54904
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: W02jobs.ztst: huge delay if output is piped (macOS)
- Date: Sat, 4 Jul 2026 01:48:02 +0200
- 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=axkRc3IZ2eHoxGLdJgtzES335DScoFYwISqOf5ibaQI=; fh=SaRIZQLW7CM66wrFMA1XjLYZZF6YKikztjoN/fa9Jvk=; b=qUne9pX5Ew5K0y4TxDetLm7M2RFFKxi0+VRmkVSzNYgzKAiJE2xtmcKle6oVh+R8tu s0bX/wfo1EQbQu9chqkdOmC7fvrGq6jXLXAF2d86quYf8y/IRt4EcUeN2rJJCrQcAX/f CVTZ2qRjiHflFoMes8g5c+Bfpfj/fYp4iAY//MLLlKZMmVwlxXPvbGZepnjDLj/jSpyP NOfa5RkKMMSaGh60gmu+TjzTSVS/FOjc5d08bzFfFq3utVINae5hqE8twx+RxyNcBpst Syp/eiN640mm6jeR5BQ0et5Ay8OGnKwNq4/YVoVS3cCjHN38FmF/aL66MkE7shCes2sw CS/g==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1783122496; cv=none; d=google.com; s=arc-20260327; b=pqpDa3GuyT7CB3NbriXId2jhCIW7ymfAs/tQ6Mnl82qNPQzDhQ76fhJEJ4j4gVmb9m SgQ18NZb7/p5WNorJgrTSY++HQ89Ucb+hTq2/zBYTh5LIfKXpD2wYHWsThrasCyyuz61 NDc/Kl390Qc7NmaHc15NXLeE4fuTI4WvFzyJWWemWWqUtY8SqF5KU6JBbGfhUCnYM1sL CdU69pvdnnqoinxYn1edSJxG/izBXs51vR01Vx6QREHkdZQ1MSStFDNCKfG4iLwgItGi sNEa3XnSxCcIPNwz+2v2+lG0PcfVYJy4jnqbJ9A9goOz+fGH7dVILcGPOo0lFyCqNEn+ Pzdg==
- Archived-at: <https://zsh.org/workers/54904>
- In-reply-to: <CAH+w=7ZDf5X6gU2qmujhNfm2uvOPQ0W9Tm7LuQHHuytVgFsy8Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <61C9F431-C8C5-4606-8CCB-08DA53999784@kba.biglobe.ne.jp> <CAHYJk3TxXtUsrWKKtSfiDOy3v7NAtnqJstNdtLdp+iOijZ4xJA@mail.gmail.com> <CAH+w=7ZDf5X6gU2qmujhNfm2uvOPQ0W9Tm7LuQHHuytVgFsy8Q@mail.gmail.com>
On Sat, Jul 4, 2026 at 1:31 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> 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.
I forgot to mention that it doesn't happen every time for me, though
it does seem to happen almost every time. Worth trying a few times
just to see though.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author