lkml.org 
[lkml]   [2014]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] ftracetest: Replace usleep with sleep 0.000001
Hi Michael,

On Wed, Dec 10, 2014 at 1:38 PM, Michael Ellerman <mpe@ellerman.id.au> 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


\
 
 \ /
  Last update: 2014-12-10 10:01    [W:0.575 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site