Skip to content

gmain: Define fallback values for siginfo_t constants for musl

Philip Withnall requested to merge pwithnall/glib:2852-musl-siginfo-t into main

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)

Closes #2852 (closed)

Merge request reports