| Index: mojo/edk/system/node_controller.cc
|
| diff --git a/mojo/edk/system/node_controller.cc b/mojo/edk/system/node_controller.cc
|
| index 431547a49bf76014d3a20338b29fab7c32857d89..602dab4834c51266a7ae647d0cad759b18248e8a 100644
|
| --- a/mojo/edk/system/node_controller.cc
|
| +++ b/mojo/edk/system/node_controller.cc
|
| @@ -911,6 +911,12 @@ void NodeController::OnRelayPortsMessage(const ports::NodeName& from_node,
|
| // process before going out (see NodeChannel::WriteChannelMessage).
|
| //
|
| // TODO: We could avoid double-duplication.
|
| + //
|
| + // Note that we explicitly mark the handles as being owned by the sending
|
| + // process before rewriting them, in order to accommodate RewriteHandles'
|
| + // internal sanity checks.
|
| + for (size_t i = 0; i < message->num_handles(); ++i)
|
| + message->handles()[i].owning_process = from_process;
|
| if (!Channel::Message::RewriteHandles(from_process,
|
| base::GetCurrentProcessHandle(),
|
| message->handles(),
|
|
|