aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorJames Clark <[email protected]>2024-11-29 15:19:48 +0000
committerNamhyung Kim <[email protected]>2024-12-02 12:36:35 -0800
commitf54cd8f43f55c0274c5b51509aff39675639c2e1 (patch)
tree66be20ebbb295298950d9277bf7a143f15d63281 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent23c44f6c83257923b179461694edcf62749bedd5 (diff)
perf test: Don't signal all processes on system when interrupting tests
This signal handler loops over all tests on ctrl-C, but it's active while the test list is being constructed. process.pid is 0, then -1, then finally set to the child pid on fork. If the Ctrl-C is received during this point a kill(-1, SIGINT) can be sent which affects all processes. Make sure the child has forked first before forwarding the signal. This can be reproduced with ctrl-C immediately after launching perf test which terminates the ssh connection. Fixes: 553d5efeb341 ("perf test: Add a signal handler to kill forked child processes") Signed-off-by: James Clark <[email protected]> Reviewed-by: Ian Rogers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions