Skip to content
Snippets Groups Projects

Allow overriding exit() on I/O errors

Merged Carlos Garnacho requested to merge carlosg/libx11:wip/exit-handler into master

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 by Carlos Garnacho

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading