Skip to content
GitLab
Projects Groups Topics 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 852
    • Issues 852
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 42
    • Merge requests 42
  • 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
  • !3347

gsocket/inotify/gwakeup: Use SOCK_NONBLOCK and O_NONBLOCK to avoid fcntl() syscalls where possible

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Philip Withnall requested to merge pwithnall/glib:socket-nonblock into main Mar 23, 2023
  • Overview 8
  • Commits 5
  • Pipelines 3
  • Changes 7

Use the support for SOCK_NONBLOCK and O_NONBLOCK in modern (actually, it’s quite old now) Linux distributions to avoid some unnecessary and non-atomic fcntl() calls after creating a socket or pipe in various places.

See the individual commit messages for specific details.

Notably, this adds to the API contract for g_unix_open_pipe(), so it cannot land in a 2.76.x release; it has to wait until 2.78.

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

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: socket-nonblock