bug-coreutils
[Top][All Lists]
Advanced

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

Re: tee logs no output if stdout is closed


From: Bruno Haible
Subject: Re: tee logs no output if stdout is closed
Date: Mon, 30 Jun 2008 13:29:03 +0200
User-agent: KMail/1.5.4

Andreas Schwab wrote:
> It also says:
> 
> ASYNCHRONOUS EVENTS
>       Default ...

That indeed appears to imply that when writing a pipe with no readers,
the 'tee' process should be killed. This is appropriate for utilities which
produce no side effects, i.e. whose _only_ purpose is to produce output
on stdout. But for 'tee', this is only half of what it should do. The other
half is to write to the log file(s).

How about adding an option '-p' to 'tee', that causes it to ignore SIGPIPE
while writing to stdout?

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]