selftests/pidfd: adapt to recent changes
authorChristian Brauner <brauner@kernel.org>
Thu, 3 Apr 2025 14:09:01 +0000 (16:09 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 7 Apr 2025 07:38:24 +0000 (09:38 +0200)
commit76d2d75ddc034e0ee7d14f9023cb6ebd6c59278d
tree2e131856a7192c04773ba5f1334ad3ee0156d71e
parent0af2f6be1b4281385b618cb86ad946eded089ac8
selftests/pidfd: adapt to recent changes

Adapt to changes in commit 9133607de37a ("exit: fix the usage of
delay_group_leader->exit_code in do_notify_parent() and pidfs_exit()").

Even if the thread-group leader exited early and succesfully it's exit
status will only be reported once the whole thread-group has exited and
it will share the exit code of the thread-group. So if the thread-group
was SIGKILLed the thread-group leader will also be reported as having
been SIGKILLed.

Link: https://lore.kernel.org/r/20250403-work-pidfd-fixes-v1-1-a123b6ed6716@kernel.org
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/pidfd/pidfd_info_test.c