|
From: | Phillip Susi |
Subject: | Re: tee logs no output if stdout is closed |
Date: | Mon, 30 Jun 2008 17:11:48 -0400 |
User-agent: | Thunderbird 2.0.0.14 (Windows/20080421) |
Andreas Schwab wrote:
Bruno Haible <address@hidden> writes:How about adding an option '-p' to 'tee', that causes it to ignore SIGPIPE while writing to stdout?Just add a trap '' SIGPIPE before starting tee.
Wouldn't that only trap SIGPIPE sent to the shell, not tee? Aren't all signal handlers reset on exec()?
It seems to me that tee should have a SIGPIPE handler which closes the broken fd and stops trying to write to it, and if ALL outputs have been closed, exit.
[Prev in Thread] | Current Thread | [Next in Thread] |