[webkit-changes] [WebKit/WebKit] 025e4f: Cherry-pick 284274 at main (57a73ac7aa73). https://bu...

Povilas Kanapickas noreply at github.com
Thu Sep 26 04:37:52 PDT 2024


  Branch: refs/heads/webkitglib/2.46
  Home:   https://github.com/WebKit/WebKit
  Commit: 025e4ff944a27f7ddef6ec5f1c2818e39eb780f2
      https://github.com/WebKit/WebKit/commit/025e4ff944a27f7ddef6ec5f1c2818e39eb780f2
  Author: Povilas Kanapickas <povilas at radix.lt>
  Date:   2024-09-26 (Thu, 26 Sep 2024)

  Changed paths:
    M Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp

  Log Message:
  -----------
  Cherry-pick 284274 at main (57a73ac7aa73). https://bugs.webkit.org/show_bug.cgi?id=280366

    [WPE][GTK] Handle EINTR in recvmsg() in IPC socket on Linux
    https://bugs.webkit.org/show_bug.cgi?id=280366

    Reviewed by Adrian Perez de Castro.

    recvmsg() may fail with EINTR in case it is interrupted by a signal.
    In the referred bug this happens due to a child process exiting (with a
    zero exit code indicating success). This causes SIGCHLD signal which
    just happens to occur during the time recvmsg was waiting for a message.
    As recvmsg invocation has no handling for EINTR it will fail, bringing
    down whole application with it.

    Handling EINTR in a while loop is a canonical solution used in
    many places across WebKit codebase already.

    * Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp:
    (IPC::readPIDFromPeer):

    Canonical link: https://commits.webkit.org/284274@main

Canonical link: https://commits.webkit.org/282416.163@webkitglib/2.46



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list