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

Issue 24456002: [Android] Fork a detached child process from adb_logcat_monitor.py. (Closed)

Created:
7 years, 3 months ago by Siva Chandra
Modified:
7 years, 2 months ago
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

[Android] Fork a detached child process from adb_logcat_monitor.py. This way, we can invoke adb_logcat_monitor.py directly from recipes. We cannot spawn a process which runs adb_logcat_monitor.py (like we have been via buildbot/bb_device_steps.py) from recipes as we cannot import subprocess et al. from recipes. BUG=286509 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226151

Patch Set 1 #

Total comments: 12

Patch Set 2 : Exit parent process with os._exit #

Total comments: 9

Patch Set 3 : Removed the spurious return #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M build/android/adb_logcat_monitor.py View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M build/android/buildbot/bb_device_steps.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
Siva Chandra
7 years, 3 months ago (2013-09-24 23:18:39 UTC) #1
navabi
https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/buildbot/bb_device_steps.py File build/android/buildbot/bb_device_steps.py (left): https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/buildbot/bb_device_steps.py#oldcode288 build/android/buildbot/bb_device_steps.py:288: bb_utils.SpawnCmd([ Why can't we spawn this command via SpawnCmd ...
7 years, 3 months ago (2013-09-24 23:36:16 UTC) #2
Siva Chandra
https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/buildbot/bb_device_steps.py File build/android/buildbot/bb_device_steps.py (left): https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/buildbot/bb_device_steps.py#oldcode288 build/android/buildbot/bb_device_steps.py:288: bb_utils.SpawnCmd([ On 2013/09/24 23:36:16, navabi wrote: > Why can't ...
7 years, 3 months ago (2013-09-24 23:47:05 UTC) #3
iannucci
On 2013/09/24 23:47:05, Siva Chandra wrote: > https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/buildbot/bb_device_steps.py > File build/android/buildbot/bb_device_steps.py (left): > > https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/buildbot/bb_device_steps.py#oldcode288 ...
7 years, 3 months ago (2013-09-25 00:52:14 UTC) #4
iannucci
On 2013/09/25 00:52:14, iannucci wrote: > On 2013/09/24 23:47:05, Siva Chandra wrote: > > > ...
7 years, 3 months ago (2013-09-25 00:52:43 UTC) #5
navabi
On 2013/09/25 00:52:43, iannucci wrote: > On 2013/09/25 00:52:14, iannucci wrote: > > On 2013/09/24 ...
7 years, 2 months ago (2013-09-25 18:06:22 UTC) #6
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-09-26 18:12:19 UTC) #7
iannucci
https://codereview.chromium.org/24456002/diff/1/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://codereview.chromium.org/24456002/diff/1/build/android/adb_logcat_monitor.py#newcode105 build/android/adb_logcat_monitor.py:105: os.setsid() How does this process get cleaned up?
7 years, 2 months ago (2013-09-26 18:15:57 UTC) #8
Siva Chandra
https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py#newcode105 build/android/adb_logcat_monitor.py:105: os.setsid() On 2013/09/26 18:15:57, iannucci wrote: > How does ...
7 years, 2 months ago (2013-09-26 18:30:06 UTC) #9
Isaac (away)
Changing this to a fork seems dangerous and I'm not it improves the API. Since ...
7 years, 2 months ago (2013-09-26 18:31:08 UTC) #10
iannucci
On 2013/09/26 18:31:08, Isaac wrote: > Changing this to a fork seems dangerous and I'm ...
7 years, 2 months ago (2013-09-26 19:43:59 UTC) #11
navabi
Let's make sure this process is properly cleaned up. https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py#newcode105 build/android/adb_logcat_monitor.py:105: ...
7 years, 2 months ago (2013-09-26 19:56:00 UTC) #12
Siva Chandra
https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py#newcode102 build/android/adb_logcat_monitor.py:102: return 0 On 2013/09/26 18:31:08, Isaac wrote: > yikes. ...
7 years, 2 months ago (2013-09-26 20:24:12 UTC) #13
Siva Chandra
https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py#newcode105 build/android/adb_logcat_monitor.py:105: os.setsid() On 2013/09/26 19:56:00, navabi wrote: > On 2013/09/26 ...
7 years, 2 months ago (2013-09-26 20:29:44 UTC) #14
Isaac (away)
On 2013/09/26 20:24:12, Siva Chandra wrote: > https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py > File build/android/adb_logcat_monitor.py (right): > > https://chromiumcodereview.appspot.com/24456002/diff/1/build/android/adb_logcat_monitor.py#newcode102 ...
7 years, 2 months ago (2013-09-26 20:59:40 UTC) #15
Isaac (away)
Here's a python daemon recipe. We probably don't need its full behavior but note that ...
7 years, 2 months ago (2013-09-26 21:03:45 UTC) #16
Siva Chandra
On 2013/09/26 21:03:45, Isaac wrote: > Here's a python daemon recipe. We probably don't need ...
7 years, 2 months ago (2013-09-26 21:12:26 UTC) #17
iannucci
https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py#newcode102 build/android/adb_logcat_monitor.py:102: return os._exit(os.EX_OK) I don't think this return will ever ...
7 years, 2 months ago (2013-09-26 21:30:57 UTC) #18
Isaac (away)
Welcome to the wild west? This was one of my first python scripts on chrome ...
7 years, 2 months ago (2013-09-26 21:45:30 UTC) #19
Siva Chandra
https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py#newcode102 build/android/adb_logcat_monitor.py:102: return os._exit(os.EX_OK) On 2013/09/26 21:30:57, iannucci wrote: > I ...
7 years, 2 months ago (2013-09-26 22:47:56 UTC) #20
iannucci
https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py#newcode102 build/android/adb_logcat_monitor.py:102: return os._exit(os.EX_OK) On 2013/09/26 22:47:57, Siva Chandra wrote: > ...
7 years, 2 months ago (2013-09-26 23:57:28 UTC) #21
Siva Chandra
https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py File build/android/adb_logcat_monitor.py (right): https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py#newcode102 build/android/adb_logcat_monitor.py:102: return os._exit(os.EX_OK) On 2013/09/26 23:57:29, iannucci wrote: > On ...
7 years, 2 months ago (2013-09-27 00:54:59 UTC) #22
iannucci
On 2013/09/27 00:54:59, Siva Chandra wrote: > https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py > File build/android/adb_logcat_monitor.py (right): > > https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/adb_logcat_monitor.py#newcode102 ...
7 years, 2 months ago (2013-09-27 01:53:04 UTC) #23
Siva Chandra
> the word 'return' on that line is not needed, since os._exit will not return ...
7 years, 2 months ago (2013-09-27 12:52:29 UTC) #24
navabi
https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/buildbot/bb_device_steps.py File build/android/buildbot/bb_device_steps.py (right): https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/buildbot/bb_device_steps.py#newcode293 build/android/buildbot/bb_device_steps.py:293: RunCmd(['sleep', '5']) On 2013/09/26 21:45:30, Isaac wrote: > On ...
7 years, 2 months ago (2013-09-27 20:38:54 UTC) #25
iannucci
On 2013/09/27 20:38:54, navabi wrote: > https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/buildbot/bb_device_steps.py > File build/android/buildbot/bb_device_steps.py (right): > > https://chromiumcodereview.appspot.com/24456002/diff/21001/build/android/buildbot/bb_device_steps.py#newcode293 > ...
7 years, 2 months ago (2013-09-27 20:41:10 UTC) #26
Siva Chandra
The latest patch set removes the spurious return that iannucci@ pointed out.
7 years, 2 months ago (2013-09-27 23:34:57 UTC) #27
navabi
On 2013/09/27 23:34:57, Siva Chandra wrote: > The latest patch set removes the spurious return ...
7 years, 2 months ago (2013-09-28 00:31:39 UTC) #28
navabi1
On 2013/09/28 00:31:39, navabi wrote: > On 2013/09/27 23:34:57, Siva Chandra wrote: > > The ...
7 years, 2 months ago (2013-09-28 00:34:53 UTC) #29
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-09-30 20:26:03 UTC) #30
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-09-30 21:01:28 UTC) #31
iannucci
lgtm as long as we're confident that this process will get reaped correctly.
7 years, 2 months ago (2013-09-30 21:13:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sivachandra@chromium.org/24456002/37001
7 years, 2 months ago (2013-09-30 21:47:11 UTC) #33
commit-bot: I haz the power
7 years, 2 months ago (2013-10-01 05:20:32 UTC) #34
Message was sent while issue was closed.
Change committed as 226151

Powered by Google App Engine
This is Rietveld 408576698