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

_NET_WM_PID is not updated after fork()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.6, 5.3.2
    • QPA: X11/XCB
    • None

      Caused https://bugs.kde.org/show_bug.cgi?id=339494
      There's also a testcase posted that compiles w/ Qt4 & Qt5

      The PID on the window is the pre-forked one.

      NETWM spec states that:
      "If set, this property MUST contain the process ID of the client owning this window."

      Because:
      "This MAY be used by the Window Manager to kill windows which do not respond to the _NET_WM_PING protocol."

      Since the WM has no chance to figure that this is the wrong PID if there is a process with this (re-used) PID, this may also cause unwanted killing of the wrong process (while this will be a rare occasion)

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

            liaqi Liang Qi
            luebking Thomas Lübking
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes