Re: [PATCH] tests: wait for flock background process

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

 



On 03/11/16 06:57, Ruediger Meier wrote:
> To replace sleep for floats, we could check and use usleep(1) from 
> sysvinit. Or we could even add usleep to util-linux as we did with 
> other sysvinit commands.

I previously suggested this technique to kernel folks,
who use it in linux kernel tests:

  yield() { sleep .001 || usleep 1 || sleep 1; }

cheers,
Pádraig.
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux