]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest: signal all child processes
authorLi Zhijian <lizhijian@cn.fujitsu.com>
Fri, 17 Dec 2021 09:29:55 +0000 (17:29 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 25 Jan 2022 20:48:21 +0000 (13:48 -0700)
commit2a813feb1e1a2e4ca29d71e7b72a1920c50be0ce
treec06db92df29335def5fe15f5770dd09303141eb3
parent9de2647f3f4a8e100455386b0421afcb60fffdb0
kselftest: signal all child processes

We have some many cases that will create child process as well, such as
pidfd_wait. Previously, we will signal/kill the parent process when it
is time out, but this signal will not be sent to its child process. In
such case, if child process doesn't terminate itself, ksefltest framework
will hang forever.

Here we group all its child processes so that kill() can signal all of
them in timeout.

Fixed change log: Shuah Khan <skhan@linuxfoundation.org>

Suggested-by: yang xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest_harness.h