At Mon, 21 Sep 2026 16:08:01 +0000, Taylor R Campbell <[email protected]> 
wrote:
Subject: SIGPIPE-equivalent before writing?
>
> Sometimes I run (say) git log or hg log with a query that takes a long
> time to produce output into my pager, less(1).

Is this truly a generic problem, or just a problem with user controlled
interactions short-circuiting pipelines when tools like pagers are used?

If it's primarily just an annoyance issue for user-driven tools like
pagers (is there anything else???), then maybe the best idea is just to
teach the pager(s) to kill the feeder if they are reading from a pipe
(probably with SIGPIPE).

I agree it could be argued to be an efficiency issue for all pipelines,
but if that's the argument then the problem is the definition of when
SIGPIPE is issued, not with trying to find a hack to work around that
problem.

--
                                        Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>

Attachment: pgpN5HyFh4lUM.pgp
Description: OpenPGP Digital Signature

Reply via email to