summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorKanishk Singh <kanishk2607@gmail.com>2026-11-11 10:30:12 -0500
committerTejun Heo <tj@kernel.org>2026-11-11 06:54:11 -1000
commit80bf33fd523ee1df2d265d34970df670a44a2ccd (patch)
treeebe67981ee7052629731113d2b469835a253c4a3 /scripts/Makefile.thinlto
parent79922ba71c838f68e7b3128a1a24e4f1dfbc99c7 (diff)
downloadlinux-next-80bf33fd523ee1df2d265d34970df670a44a2ccd.tar.gz
linux-next-80bf33fd523ee1df2d265d34970df670a44a2ccd.zip
selftests/cgroup: Decode waitid results correctly in clone_reap
clone_reap() applies the waitpid() status macros to waitid()'s si_status. Unlike waitpid()'s encoded status, si_status already holds the exit code or signal number, and si_code identifies the event. For example, a child exiting with status 128 is reported as successful, while a child exiting with status 42 produces -1 rather than 42. Stop and continuation events are also rejected. With WNOHANG, a live child can be reported as having exited successfully because the zeroed si_status passes WIFEXITED(). Check si_code for the requested event and return si_status directly for exit and stop events. Accept CLD_TRAPPED along with CLD_STOPPED, as both correspond to stopped children. Signed-off-by: Kanishk Singh <kanishk2607@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions