Skip to content

Commit ab2dd17

Browse files
amlutoingomolnar
authored andcommitted
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
1 parent 5f1dd4d commit ab2dd17

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/testing/selftests/x86/fsgsbase.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ static void test_ptrace_write_gsbase(void)
517517

518518
END:
519519
ptrace(PTRACE_CONT, child, NULL, NULL);
520+
wait(&status);
521+
if (!WIFEXITED(status))
522+
printf("[WARN]\tChild didn't exit cleanly.\n");
520523
}
521524

522525
int main()

0 commit comments

Comments
 (0)