Re: [PATCH] ftracetest: Do not use usleep
From: Steven Rostedt
Date: Mon Mar 30 2015 - 21:29:54 EST
On Tue, 31 Mar 2015 02:08:06 +0100
PÃdraig Brady <P@xxxxxxxxxxxxxx> wrote:
> > I'm okay with ping though but worried if some tiny system might lack
> > the ping command..
>
> I'd use a fallback method like:
>
> yield() { sleep .001 || usleep 1 || sleep 1; }
>
> Then just s/usleep 1/yield/
yield() { ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; } ;-)
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/