At Mon, 21 Sep 2026 16:08:01 +0000, Taylor R Campbell <riastradh%NetBSD.org@localhost> 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 <gwoods%acm.org@localhost> Kelowna, BC +1 250 762-7675 RoboHack <woods%robohack.ca@localhost> Planix, Inc. <woods%planix.com@localhost> Avoncote Farms <woods%avoncote.ca@localhost>
Attachment:
pgpoXjuzIWV0K.pgp
Description: OpenPGP Digital Signature