At Tue, 22 Sep 2026 11:13:21 +0200, Edgar Fuß <ef%math.uni-bonn.de@localhost> wrote: Subject: Re: SIGPIPE-equivalent before writing? > > > 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). > > But the pager can't know whether you would want the feeder to finish. > Maybe the last thing you saw in the pager was something like > All done, rebuilding index. This may take some while. > and you neither want to wait that to finish nor interrupt it. Indeed, in which case that could be true for all pipelines, regardless of whether the final (or some) reader is terminated by normal user interaction or whether it is some other early algorithm driven termination. So, perhaps this is just a minor annoyance and users should simply be encouraged to send the interrupt character if they want their shell prompt to return before the earlier pipeline process(es) finish. -- 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:
pgpLKOttGq6IT.pgp
Description: OpenPGP Digital Signature