On Tue, 31 Mar 2015 02:08:06 +0100 Pádraig Brady <p...@draigbrady.com> 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/