Changeset 63855 in webkit


Ignore:
Timestamp:
Jul 21, 2010 1:54:30 PM (14 years ago)
Author:
Adam Roben
Message:

Handle broken pipes in more places in CoreIPC

Fixes <http://webkit.org/b/42784> Assertion failure in
Connection::readEventHandler when WebKitTestRunner exits

Reviewed by Anders Carlsson.

  • Platform/CoreIPC/win/ConnectionWin.cpp:

(CoreIPC::Connection::readEventHandler): Check for a broken pipe
whenever we call ::PeekNamedPipe.

Location:
trunk/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r63852 r63855  
     12010-07-21  Adam Roben  <aroben@apple.com>
     2
     3        Handle broken pipes in more places in CoreIPC
     4
     5        Fixes <http://webkit.org/b/42784> Assertion failure in
     6        Connection::readEventHandler when WebKitTestRunner exits
     7
     8        Reviewed by Anders Carlsson.
     9
     10        * Platform/CoreIPC/win/ConnectionWin.cpp:
     11        (CoreIPC::Connection::readEventHandler): Check for a broken pipe
     12        whenever we call ::PeekNamedPipe.
     13
    1142010-07-21  Adam Roben  <aroben@apple.com>
    215
  • trunk/WebKit2/Platform/CoreIPC/win/ConnectionWin.cpp

    r63852 r63855  
    125125                if (!::PeekNamedPipe(m_connectionPipe, 0, 0, 0, 0, &bytesToRead)) {
    126126                    DWORD error = ::GetLastError();
     127                    if (error == ERROR_BROKEN_PIPE) {
     128                        connectionDidClose();
     129                        return;
     130                    }
    127131                    ASSERT_NOT_REACHED();
    128132                    return;
     
    175179        if (!::PeekNamedPipe(m_connectionPipe, 0, 0, 0, 0, &bytesToRead)) {
    176180            DWORD error = ::GetLastError();
     181            if (error == ERROR_BROKEN_PIPE) {
     182                connectionDidClose();
     183                return;
     184            }
    177185            ASSERT_NOT_REACHED();
    178186        }
Note: See TracChangeset for help on using the changeset viewer.