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

Issue 9689081: Add comments and fix a potential leak in LaunchProcess. (Closed)

Created:
8 years, 9 months ago by erikwright (departed)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, grt (UTC plus 2)
Visibility:
Public.

Description

Add comments and fix a potential leak in LaunchProcess. I found a need to look at the implementation to confirm that process_handle would never be assigned to if the call failed. So I added a comment for future readers. While doing so, I found an edge case where I think the process handle could be leaked. BUG=None TEST=Ask a random developer whether they must check process_handle if LaunchProcess returns false. If they look at process_util_*.cc, fail. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126890

Patch Set 1 #

Patch Set 2 : Missing matching call to CloseHandle(hThread) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M base/process_util.h View 2 chunks +6 lines, -2 lines 0 comments Download
M base/process_util_win.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
erikwright (departed)
phajdan.jr because you originally added this job_handle stuff.
8 years, 9 months ago (2012-03-13 20:42:14 UTC) #1
willchan no longer on Chromium
I think this code is right, but I'm not a Windows expert (although I know ...
8 years, 9 months ago (2012-03-13 21:13:56 UTC) #2
brettw
lgtm
8 years, 9 months ago (2012-03-13 21:28:28 UTC) #3
Paweł Hajdan Jr.
LGTM
8 years, 9 months ago (2012-03-14 11:10:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/9689081/1
8 years, 9 months ago (2012-03-14 11:12:32 UTC) #5
commit-bot: I haz the power
Try job failure for 9689081-1 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-14 13:49:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/9689081/10019
8 years, 9 months ago (2012-03-15 01:47:53 UTC) #7
commit-bot: I haz the power
Try job failure for 9689081-10019 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-15 03:54:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/9689081/10019
8 years, 9 months ago (2012-03-15 10:45:59 UTC) #9
commit-bot: I haz the power
8 years, 9 months ago (2012-03-15 12:40:08 UTC) #10
Change committed as 126890

Powered by Google App Engine
This is Rietveld 408576698