coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] tee: Add --pipe-check to allow instantly detecting closed ou


From: Arsen Arsenović
Subject: Re: [PATCH] tee: Add --pipe-check to allow instantly detecting closed outputs
Date: Mon, 12 Dec 2022 14:01:08 +0100

Hi Rob,

Rob Landley <rob@landley.net> writes:

> This sort of thing is why I added -i to toybox's "timeout" command:
>
>     -i  Only kill for inactivity (restart timeout when command produces 
> output)
>
> It runs the command's stdout through a pipe and does a poll() with the -i
> seconds value, and signals the program if the poll() expires.
>
> The android guys found it useful, but I was waiting to hear back about "cut 
> -DF"
> before bringing it up here...

That's interesting, might be worth adding to the GNU timeout, however,
it's not appropriate for what I'm using tee for, since compiler
processes could appear idle for a long time, if doing LTO for instance.

Thanks, have a great day.
-- 
Arsen Arsenović

Attachment: signature.asc
Description: PGP signature


reply via email to

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