Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • libX11 libX11
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 71
    • Issues 71
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • lib
  • libX11libX11
  • Merge requests
  • !15

Allow overriding exit() on I/O errors

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Carlos Garnacho requested to merge carlosg/libx11:wip/exit-handler into master Jun 14, 2019
  • Overview 22
  • Commits 2
  • Pipelines 0
  • Changes 7

Traditionally X11 I/O errors were fatal as there wasn't much point in allowing a UI application to live on without a mean to show the UI.

This is however not as crystal clear with Wayland compositors, as they may be x11 clients too (in order to serve as a X11 compositing manager) and it would be in their best interest to survive the fact.

This MR implements a XSetIOErrorExitHandler() function, that would allow compositors to try precisely that. I'm however unclear this is the best method, or something even sneakier (like an envvar) would be preferred, hence the WIP and the RFC.

Edited Nov 20, 2019 by Carlos Garnacho
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/exit-handler