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

Issue 444013002: [Telemetry] Ensure we close ippet's handle if anything goes wrong. (Closed)

Created:
6 years, 4 months ago by tonyg
Modified:
6 years, 4 months ago
Reviewers:
dtu
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Ensure we close ippet's handle if anything goes wrong. BUG=400960

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -20 lines) Patch
M tools/telemetry/telemetry/core/platform/power_monitor/ippet_power_monitor.py View 1 chunk +22 lines, -20 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
tonyg
This is speculative. LMK what you think.
6 years, 4 months ago (2014-08-06 14:36:15 UTC) #1
dtu
6 years, 4 months ago (2014-08-06 19:04:22 UTC) #2
https://chromiumcodereview.appspot.com/444013002/diff/1/tools/telemetry/telem...
File
tools/telemetry/telemetry/core/platform/power_monitor/ippet_power_monitor.py
(right):

https://chromiumcodereview.appspot.com/444013002/diff/1/tools/telemetry/telem...
tools/telemetry/telemetry/core/platform/power_monitor/ippet_power_monitor.py:143:
self._ippet_handle.Close()
Closing the handle just releases the reference, it doesn't terminate the
process.
if win32process.GetExitCodeProcess(self._ippet_handle) == win32con.STILL_ACTIVE:
  win32process.TerminateProcess(self._ippet_handle)

Powered by Google App Engine
This is Rietveld 408576698