forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mojo] Release sent handles earlier on Windows
This releases HANDLE ownership *before* sending any handle in a message to a remote process, rather than after. Avoids an extremely subtle race between DuplicateHandle+DUPLICATE_CLOSE_SOURCE in the receiving process racing with ScopedHandle release in the sending process. The trade-off is the introduction of potential leaks which turn out to not really matter in any practical scenarios. Bug: 900655 Change-Id: Ieec82bb062bc66cdb3c732c920a220ea2aa2f8d0 Reviewed-on: https://chromium-review.googlesource.com/c/1310505 Commit-Queue: Ken Rockot <rockot@google.com> Reviewed-by: Joe Mason <joenotcharles@chromium.org> Cr-Commit-Position: refs/heads/master@{#604510}
- Loading branch information
Showing
2 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters