bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] Add timeout utility


From: Pádraig Brady
Subject: Re: [PATCH] Add timeout utility
Date: Wed, 2 Apr 2008 16:31:37 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Bo Borgerson wrote:
> On Wed, Apr 2, 2008 at 10:20 AM, Pádraig Brady <address@hidden> 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.




reply via email to

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