Changeset 140351 in webkit


Ignore:
Timestamp:
Jan 21, 2013 12:51:19 PM (11 years ago)
Author:
andersca@apple.com
Message:

Don't null out the IPC connection in ChildProcess:terminate
https://bugs.webkit.org/show_bug.cgi?id=107469
<rdar://problem/13015294>

Reviewed by Dan Bernstein.

We already invalidate the connection, and Connection::sendMessage checks if a connection
is valid and bails if it isn't, so the only thing that nulling out the connection here does
is that it would force us to add random connection null checks everywhere.

  • Shared/ChildProcess.cpp:

(WebKit::ChildProcess::terminate):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r140348 r140351  
     12013-01-21  Anders Carlsson  <andersca@apple.com>
     2
     3        Don't null out the IPC connection in ChildProcess:terminate
     4        https://bugs.webkit.org/show_bug.cgi?id=107469
     5        <rdar://problem/13015294>
     6
     7        Reviewed by Dan Bernstein.
     8
     9        We already invalidate the connection, and Connection::sendMessage checks if a connection
     10        is valid and bails if it isn't, so the only thing that nulling out the connection here does
     11        is that it would force us to add random connection null checks everywhere.
     12
     13        * Shared/ChildProcess.cpp:
     14        (WebKit::ChildProcess::terminate):
     15
    1162013-01-21  Joone Hur  <joone.hur@intel.com>
    217
  • trunk/Source/WebKit2/Shared/ChildProcess.cpp

    r140230 r140351  
    143143{
    144144    m_connection->invalidate();
    145     m_connection = nullptr;
    146145
    147146    RunLoop::main()->stop();
Note: See TracChangeset for help on using the changeset viewer.