]> git.ipfire.org Git - thirdparty/glibc.git/commit
linux/mips: handle wait status 0x7f specially for WIFSIGNALED and WIFSTOPPED
authorXi Ruoyao <xry111@xry111.site>
Thu, 26 Feb 2026 10:50:53 +0000 (11:50 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 26 Feb 2026 10:50:53 +0000 (11:50 +0100)
commitc19cdbf66ff62a4578ac2117d43ebb306ae36aeb
tree0bcb81640eb6f931be872183942850562072025b
parent493fac9ac87531cd77df6fd6ba039ed434fb3ff4
linux/mips: handle wait status 0x7f specially for WIFSIGNALED and WIFSTOPPED

MIPS Linux has SIGRTMAX=127, thus the wait status 0x7f means the program
is terminated by SIGRTMAX, not stopped.

This cannot happen on other ports so make a special version of
waitstatus.h for MIPS to avoid adding redundant calculation to others.
I cannot find a way to use status only once in the expression, so use
inline functions instead of macros to avoid double-evaluating status.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/mips/bits/waitstatus.h [new file with mode: 0644]