Re: [PATCH] ftracetest: Replace usleep with sleep 0.000001

From: Namhyung Kim
Date: Wed Dec 10 2014 - 03:20:05 EST


Hi Michael,

On Wed, Dec 10, 2014 at 1:38 PM, Michael Ellerman <mpe@xxxxxxxxxxxxxx> wrote:
> usleep is a Fedoraism, it's not generally available on Debian based
> systems AFAICS.
>
> GNU sleep accepts a floating point argument, so use that instead.

I tested it on busybox not Debian, sorry. But it seems busybox's
sleep doesn't support floating point argument..

/ # ls -l `which sleep`
lrwxrwxrwx 1 root rooot 7 May 22 2014 /bin/sleep -> busybox

/ # sleep 0.1
sleep: invalid number '0.1'


Thanks,
Namhyung
--
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/