Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 853
    • Issues 853
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !3158

gmain: Define fallback values for siginfo_t constants for musl

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Philip Withnall requested to merge pwithnall/glib:2852-musl-siginfo-t into main Dec 21, 2022
  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 1

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)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 2852-musl-siginfo-t