On Wed, Oct 02, 2024 at 02:43:11PM +0300, Anssi Saari wrote:
> <to...@tuxteam.de> writes:

[...]

> > Explain to us what you really mean by "signals pass up the pipe", then 
> > things
> > might become clearer.
> 
> I realize I didn't spell it out. It's the, to me, obvious solution to
> Tim's problem, as he wrote:
> 
> QUOTE
> ./script |& tee log
> 
> and now it doesn't clean up if I <ctrl c> it."
> END QUOTE
> 
> Running ./script |& tee -i log works as expected. The script gets the
> INT signal and cleans up.

Understood.

> To me, "signal passing up the pipe" is an apt analogy of how things work
> in practice.

This triggered the wrong association for me, TBH :)

What actually happens seems completely different to me: the shell
gets the EPIPE from the dying tee before it can see the EINTR, right?

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to