Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 1940353002: [mojo-edk] Invalidate message handle when rewrite fails (Closed)

Created:
4 years, 7 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 7 months ago
Reviewers:
jam
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mojo-edk] Invalidate message handle when rewrite fails On Windows we rewrite (i.e. duplicate-and-close) outgoing handles before sending to another process. This operation can fail if the target process is closing. This CL invalidates a stored handle if DuplicateHandle fails, preventing PlatformHandle from later trying to close a non-existent handle during Message destruction. BUG=608767 R=jam@chromium.org Committed: https://crrev.com/a4bd42ba95dfa2be77c4a9db6388e97270046dea Cr-Commit-Position: refs/heads/master@{#391287}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M mojo/edk/embedder/platform_handle_utils_win.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/system/channel.cc View 2 1 chunk +9 lines, -2 lines 0 comments Download
M mojo/edk/system/node_channel.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Ken Rockot(use gerrit already)
4 years, 7 months ago (2016-05-03 16:17:38 UTC) #2
Ken Rockot(use gerrit already)
per offline discussion, added checks to avoid duplicating the current process handle to a remote ...
4 years, 7 months ago (2016-05-03 16:38:07 UTC) #3
Ken Rockot(use gerrit already)
On 2016/05/03 at 16:38:07, Ken Rockot wrote: > per offline discussion, added checks to avoid ...
4 years, 7 months ago (2016-05-03 16:38:56 UTC) #4
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1940353002/diff/20001/mojo/edk/system/channel.cc File mojo/edk/system/channel.cc (right): https://codereview.chromium.org/1940353002/diff/20001/mojo/edk/system/channel.cc#newcode334 mojo/edk/system/channel.cc:334: CHECK_NE(handles[i].handle, INVALID_HANDLE_VALUE); Just noticing that this can't be reached ...
4 years, 7 months ago (2016-05-03 16:46:49 UTC) #6
jam
lgtm
4 years, 7 months ago (2016-05-03 17:09:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1940353002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1940353002/40001
4 years, 7 months ago (2016-05-03 17:12:28 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-03 17:45:51 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 17:46:50 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a4bd42ba95dfa2be77c4a9db6388e97270046dea
Cr-Commit-Position: refs/heads/master@{#391287}

Powered by Google App Engine
This is Rietveld 408576698