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

Unified Diff: tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py

Issue 572643002: telemetry: Fix runaway subprocess in monsoon_power_monitor.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix email address in AUTHORS Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py
diff --git a/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py b/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py
index b2bf0fdf20eeedce91773264f47c34351c28baef..eb9e9d97eb4ce5f475f054784c7d1642c575a498 100644
--- a/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py
+++ b/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py
@@ -73,6 +73,8 @@ class MonsoonPowerMonitor(sysfs_power_monitor.SysfsPowerMonitor):
args=(self._monsoon,
self._is_collecting,
self._powermonitor_output_file))
+ # Ensure child is not left behind: parent kills daemonic children on exit.
+ self._powermonitor_process.daemon = 1
achuithb 2014/09/17 13:37:58 True? Isn't this a Boolean?
v.putkinen 2014/09/18 07:33:54 It is, good catch. I'll send a fixed patch set wit
self._powermonitor_process.start()
if not self._is_collecting.wait(timeout=0.5):
self._powermonitor_process.terminate()
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698