Chromium Code Reviews
Description[mojo-edk] Close pending merges if the parent channel dies.
Posix behaviour for child process when a parent dies is... complicated.
ChildThreadImpl relies on the IPC channel error handler to detect when the
parent is gone and shut down. However, if the parent dies before the channel's
token/port is merged, the child never receives the channel error.
This change causes ports that have pending merges to close when the parent
channel is gone. This doesn't cover the case when a merge has been sent, but
hasn't yet been processed by the time the parent channel is gone. That's
a bit more complicated.
BUG=604282
Committed: https://crrev.com/121c8804d511e331b9098a06e425172917c34e06
Cr-Commit-Position: refs/heads/master@{#405047}
Patch Set 1 #Patch Set 2 : Test 2. #Patch Set 3 : Revert stuff for merge. #
Messages
Total messages: 17 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||