[LTP] [RFC PATCH] read_all: give more time to wait children finish read action
Cyril Hrubis
chrubis@suse.cz
Mon Apr 9 13:11:20 CEST 2018
Hi!
> OK, I think this change is good except that using a constant time for
> the usleep is probably bad. Instead we could use an exponential
> function; so we can start with a sleep of 1 then double it up to a
> maximum of 20 times (approximately a second for the final wait).
Actually I was thinking of adding such functionality to the test library
exactly because I do not want to reimplement the exponentialy
incremented sleep for retry over and overe in each testcase...
Maybe we need TST_RETRY_ON_NONZERO() macro that would build the retry
loop around a function passed as a paramter or something like that.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list