diff options
author | 2025-02-19 15:49:54 -0800 | |
---|---|---|
committer | 2025-02-20 17:58:25 -0800 | |
commit | 71477137994f4ac8396504bf98346b316da38157 (patch) | |
tree | 841f02ee36e685553c5587478e905fd965f4c6ce /net/lapb/lapb_timer.c | |
parent | selftests: drv-net: probe for AF_XDP sockets more explicitly (diff) | |
download | wireguard-linux-71477137994f4ac8396504bf98346b316da38157.tar.xz wireguard-linux-71477137994f4ac8396504bf98346b316da38157.zip |
selftests: drv-net: add a way to wait for a local process
We use wait_port_listen() extensively to wait for a process
we spawned to be ready. Not all processes will open listening
sockets. Add a method of explicitly waiting for a child to
be ready. Pass a FD to the spawned process and wait for it
to write a message to us. FD number is passed via KSFT_READY_FD
env variable.
Similarly use KSFT_WAIT_FD to let the child process for a sign
that we are done and child should exit. Sending a signal to
a child with shell=True can get tricky.
Make use of this method in the queues test to make it less flaky.
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Acked-by: Joe Damato <jdamato@fastly.com>
Tested-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250219234956.520599-6-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions