Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130741

Provide a hook for application cleanup before unconditional exit() after xcb connection

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.19, 6.8.0
    • QPA: X11/XCB
    • None
    • Linux/X11

    Description

      0b1ce5db9e04b4c28713e87306fcea020c3e428b introduced an unconditional call to exit() in case the xcb connection hast some error. It would be nice if the application were given some chance to cleanup or to e.g. save internal state before exiting.

      void QXcbConnection::processXcbEvents()
      {
             int connection_error = xcb_connection_has_error(xcb_connection());
             if (connection_error) {
              qWarning("The X11 connection broke (error %d). Did the X11 server die?", connection_error);
              exit(1);
          }
      [...]
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            liaqi Liang Qi
            hjk hjk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes