tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sh: killing a pipe head from the tail

On Tue, 7 Dec 2021 at 16:38, Edgar Fuß <> wrote:
> Is there a sane way to kill a pipe's head from within the pipe's tail, at least on tail exit? Of course, when the tail exits, the head will get SIGPIPE as soon
> as it tries to output something, but can the tail explicitly kill it earlier?

Can't you just close() the pipe? (or am I missing something obvious :)


Home | Main Index | Thread Index | Old Index