On Wed, Mar 11, 2020 at 3:28 PM Andrii Nakryiko <andriin@xxxxxx> wrote: > > Switch to non-blocking accept and wait for server thread to exit before > proceeding. I noticed that sometimes tcp_rtt server thread failure would > "spill over" into other tests (that would run after tcp_rtt), probably just > because server thread exits much later and tcp_rtt doesn't wait for it. > > v1->v2: > - add usleep() while waiting on initial non-blocking accept() (Stanislav); > > Fixes: 8a03222f508b ("selftests/bpf: test_progs: fix client/server race in tcp_rtt") > Reviewed-by: Stanislav Fomichev <sdf@xxxxxxxxxx> > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> Applied. Thanks