Bo Borgerson wrote:
> On Wed, Apr 2, 2008 at 10:20 AM, Pádraig Brady <[EMAIL PROTECTED]> wrote:
>>  It will always go through though as the kernel will buffer it.
> 
> Yes, that introduces some fuzz, but I think the principle remains
> viable -- the kernel will only buffer so much.

That could be a long time though.

> 
> Consider the following using a timeout.c modified with the attached
> patch, and a small Perl program (below) than hangs after 10 seconds:
> 
> $ time yes | src/timeout -i 2s ./write_then_hang 10 >/dev/null

replacing `yes` with `while true; do yes; sleep 1; done`
causes this to hang for ages.

I'll have another look at this when I finalize `timeout`

thanks,
Pádraig.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to