diff options
author | Andy Lutomirski <luto@kernel.org> | 2020-08-26 10:00:45 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-08-26 20:54:17 +0200 |
commit | ab2dd173330a3f07142e68cd65682205036cd00f (patch) | |
tree | 00cfd04e201307a2d8b0b98004f813fd0302beb5 /tools/testing/selftests/x86 | |
parent | 5f1dd4dda5c8796c405e856aaa11e187f6885924 (diff) | |
download | linux-stable-ab2dd173330a3f07142e68cd65682205036cd00f.tar.gz linux-stable-ab2dd173330a3f07142e68cd65682205036cd00f.tar.bz2 linux-stable-ab2dd173330a3f07142e68cd65682205036cd00f.zip |
selftests/x86/fsgsbase: Reap a forgotten child
The ptrace() test forgot to reap its child. Reap it.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/e7700a503f30e79ab35a63103938a19893dbeff2.1598461151.git.luto@kernel.org
Diffstat (limited to 'tools/testing/selftests/x86')
-rw-r--r-- | tools/testing/selftests/x86/fsgsbase.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/x86/fsgsbase.c b/tools/testing/selftests/x86/fsgsbase.c index 998319553523..0056e2597f53 100644 --- a/tools/testing/selftests/x86/fsgsbase.c +++ b/tools/testing/selftests/x86/fsgsbase.c @@ -517,6 +517,9 @@ static void test_ptrace_write_gsbase(void) END: ptrace(PTRACE_CONT, child, NULL, NULL); + wait(&status); + if (!WIFEXITED(status)) + printf("[WARN]\tChild didn't exit cleanly.\n"); } int main() |