misc: tst-poll: Proper synchronize with child before sending the signal
commit26d01172f5c3f3b912ecf21ebb911eb5351bba4d
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 26 Jan 2024 11:23:41 +0000 (26 08:23 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 1 Feb 2024 12:31:33 +0000 (1 09:31 -0300)
tree06b295e1341a5d8603b2c4cf843e114e8ed586bb
parent9c61303ebbdc6e727c89591bff3229c9fbfa438b
misc: tst-poll: Proper synchronize with child before sending the signal

When running the testsuite in parallel, for instance running make -j
$(nproc) check, occasionally tst-epoll fails with a timeout.  It happens
because it sometimes takes a bit more than 10ms for the process to get
cloned and blocked by the syscall.  In that case the signal is
sent to early, and the test fails with a timeout.

Checked on x86_64-linux-gnu.
sysdeps/unix/sysv/linux/tst-epoll.c