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

Issue 1337953003: win: Fix pipe leak on connection (Closed)

Created:
5 years, 3 months ago by scottmg
Modified:
5 years, 3 months ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: Fix pipe leak on connection The pipe handle was being leaked on connections (oops!). On XP this resulted in the next test's CreateNamedPipe to fail, because the previous one still existed (because all handles were not closed). More recent OSs are more forgiving so I got away with the buggy code. R=mark@chromium.org BUG=crashpad:50 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/81269ee676d8aa5f7e5e7f3a142de6718293de6d

Patch Set 1 #

Total comments: 2

Patch Set 2 : pcheck createthread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M util/win/exception_handler_server.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M util/win/registration_protocol_win.cc View 2 chunks +12 lines, -10 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 5 (0 generated)
scottmg
5 years, 3 months ago (2015-09-11 22:02:04 UTC) #1
Mark Mentovai
Wow, good catch. Thanks, XP! https://codereview.chromium.org/1337953003/diff/1/util/win/exception_handler_server.cc File util/win/exception_handler_server.cc (right): https://codereview.chromium.org/1337953003/diff/1/util/win/exception_handler_server.cc#newcode227 util/win/exception_handler_server.cc:227: CreateThread(nullptr, 0, &PipeServiceProc, context, ...
5 years, 3 months ago (2015-09-11 22:29:00 UTC) #2
Mark Mentovai
P.S. That means LGTM.
5 years, 3 months ago (2015-09-11 22:29:09 UTC) #3
scottmg
https://codereview.chromium.org/1337953003/diff/1/util/win/exception_handler_server.cc File util/win/exception_handler_server.cc (right): https://codereview.chromium.org/1337953003/diff/1/util/win/exception_handler_server.cc#newcode227 util/win/exception_handler_server.cc:227: CreateThread(nullptr, 0, &PipeServiceProc, context, 0, nullptr)); On 2015/09/11 22:29:00, ...
5 years, 3 months ago (2015-09-11 22:33:52 UTC) #4
scottmg
5 years, 3 months ago (2015-09-11 22:34:40 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
81269ee676d8aa5f7e5e7f3a142de6718293de6d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698