Re: [PATCH] perf test: Don't signal all processes on system when interrupting tests

From: Namhyung Kim
Date: Tue Dec 03 2024 - 16:59:16 EST


On Fri, 29 Nov 2024 15:19:48 +0000, James Clark wrote:

> 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.
>
> [...]

Applied to perf-tools, thanks!

Best regards,
Namhyung