aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorJiri Benc <jbenc@redhat.com>2019-11-15 13:43:23 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-11-18 21:31:49 +0100
commit3b054b7133b4ad93671c82e8d6185258e3f1a7a5 (patch)
tree6e47271b9f9577ad807cbe6999b4c217a934f7a5 /ipc
parentselftests, bpf: xdping is not meant to be run standalone (diff)
downloadlinux-dev-3b054b7133b4ad93671c82e8d6185258e3f1a7a5.tar.xz
linux-dev-3b054b7133b4ad93671c82e8d6185258e3f1a7a5.zip
selftests, bpf: Fix test_tc_tunnel hanging
When run_kselftests.sh is run, it hangs after test_tc_tunnel.sh. The reason is test_tc_tunnel.sh ensures the server ('nc -l') is run all the time, starting it again every time it is expected to terminate. The exception is the final client_connect: the server is not started anymore, which ensures no process is kept running after the test is finished. For a sit test, though, the script is terminated prematurely without the final client_connect and the 'nc' process keeps running. This in turn causes the run_one function in kselftest/runner.sh to hang forever, waiting for the runaway process to finish. Ensure a remaining server is terminated on cleanup. Fixes: f6ad6accaa99 ("selftests/bpf: expand test_tc_tunnel with SIT encap") Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Willem de Bruijn <willemb@google.com> Link: https://lore.kernel.org/bpf/60919291657a9ee89c708d8aababc28ebe1420be.1573821780.git.jbenc@redhat.com
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions