Skip to content

Backport !3158 ”gmain: Define fallback values for siginfo_t constants for musl” to glib-2-74

musl doesn’t define them itself, presumably because they’re not defined in POSIX. glibc does define them. Thankfully, the values used in glibc match the values used internally in other musl macros.

Define the values as a fallback. As a result of this, we can get rid of the g_assert_if_reached() checks in siginfo_t_to_wait_status().

This should fix catching signals from a subprocess when built against musl.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #2852 (closed)


Trivial backport of !3158 (merged) to glib-2-74.

Merge request reports