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

Issue 1328623004: Add logic to daemonizer to be able to kill what it daemonizes (Closed)

Created:
5 years, 3 months ago by bpastene
Modified:
5 years, 3 months ago
Reviewers:
luqui
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org, stip+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Add logic to daemonizer to be able to kill what it daemonizes Previously, daemonzer.py simply launched a daemon process without storing its pid anywhere. Consequently, it was left to the daemon itself to handle shutting down and/or restarting. This cl adds the option to store the daemon's pid in a file and kill it. This update is part of the effort to add temperature monitoring to android devices. A more advanced daemon manager would certainly help. BUG=519884 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=296613

Patch Set 1 #

Total comments: 16

Patch Set 2 : Responded to comments #

Patch Set 3 : Parent of daemon waits again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -17 lines) Patch
M scripts/slave/daemonizer.py View 1 2 3 chunks +86 lines, -17 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
bpastene
5 years, 3 months ago (2015-09-04 16:48:41 UTC) #2
bpastene
ptal when you get a chance
5 years, 3 months ago (2015-09-05 00:25:46 UTC) #3
luqui
https://codereview.chromium.org/1328623004/diff/1/scripts/slave/daemonizer.py File scripts/slave/daemonizer.py (right): https://codereview.chromium.org/1328623004/diff/1/scripts/slave/daemonizer.py#newcode30 scripts/slave/daemonizer.py:30: def start(cmd, pid_file_path): seems like this action ought to ...
5 years, 3 months ago (2015-09-08 18:18:10 UTC) #4
bpastene
https://codereview.chromium.org/1328623004/diff/1/scripts/slave/daemonizer.py File scripts/slave/daemonizer.py (right): https://codereview.chromium.org/1328623004/diff/1/scripts/slave/daemonizer.py#newcode30 scripts/slave/daemonizer.py:30: def start(cmd, pid_file_path): On 2015/09/08 18:18:10, luqui wrote: > ...
5 years, 3 months ago (2015-09-08 20:50:47 UTC) #5
luqui
lgtm after undoing the thing I told you to do. https://codereview.chromium.org/1328623004/diff/1/scripts/slave/daemonizer.py File scripts/slave/daemonizer.py (right): https://codereview.chromium.org/1328623004/diff/1/scripts/slave/daemonizer.py#newcode105 ...
5 years, 3 months ago (2015-09-08 21:15:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1328623004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1328623004/40001
5 years, 3 months ago (2015-09-09 19:40:56 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 19:43:39 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=296613

Powered by Google App Engine
This is Rietveld 408576698