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

Issue 1685793003: Add message from grandchild to parent to indicate successful host launch. (Closed)

Created:
4 years, 10 months ago by Jamie
Modified:
4 years, 10 months ago
Reviewers:
Sergey Ulanov, Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add message from grandchild to parent to indicate successful host launch. Previously, the grandparent process would assume the host started successfully if the grandchild closed the pipe. However, this happens regardless of the exit code of the grandchild process. This CL allows commands to be sent between the processes in addition to log messages, and defines an explicit command to indicate successful start-up; if the grandparent does not receive this command, it indicates failure via a non-zero exit code. BUG=332930 TEST=chmod -x remoting_me2me_host; linux_me2me_host.py --start; echo $? (should give 1) Committed: https://crrev.com/4dc4509a5cf240192dfeaafebf1986c0753814f7 Cr-Commit-Position: refs/heads/master@{#375680}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Reviewer feedback. #

Total comments: 1

Patch Set 3 : Remove timeout. #

Total comments: 3

Patch Set 4 : Reinstate timeout and increase 120s to match heartbeat_sender.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -8 lines) Patch
M remoting/host/linux/linux_me2me_host.py View 1 2 3 5 chunks +33 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Jamie
ptal
4 years, 10 months ago (2016-02-10 18:48:07 UTC) #3
Lambros
https://codereview.chromium.org/1685793003/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/1685793003/diff/1/remoting/host/linux/linux_me2me_host.py#newcode716 remoting/host/linux/linux_me2me_host.py:716: Must be called by the parent process. Document the ...
4 years, 10 months ago (2016-02-10 19:43:32 UTC) #4
Jamie
ptal https://codereview.chromium.org/1685793003/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/1685793003/diff/1/remoting/host/linux/linux_me2me_host.py#newcode716 remoting/host/linux/linux_me2me_host.py:716: Must be called by the parent process. On ...
4 years, 10 months ago (2016-02-11 00:00:23 UTC) #5
Lambros
lgtm, assuming you'll address my concern here or in a followup CL. https://codereview.chromium.org/1685793003/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py ...
4 years, 10 months ago (2016-02-11 21:46:03 UTC) #6
Jamie
+Sergey to comment on the timeout change. https://codereview.chromium.org/1685793003/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/1685793003/diff/1/remoting/host/linux/linux_me2me_host.py#newcode817 remoting/host/linux/linux_me2me_host.py:817: os._exit(1) # ...
4 years, 10 months ago (2016-02-12 18:32:12 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/1685793003/diff/40001/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (left): https://codereview.chromium.org/1685793003/diff/40001/remoting/host/linux/linux_me2me_host.py#oldcode727 remoting/host/linux/linux_me2me_host.py:727: signal.alarm(30) On 2016/02/12 18:32:12, Jamie wrote: > Sergey, do ...
4 years, 10 months ago (2016-02-12 22:42:26 UTC) #9
Jamie
ptal https://codereview.chromium.org/1685793003/diff/40001/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (left): https://codereview.chromium.org/1685793003/diff/40001/remoting/host/linux/linux_me2me_host.py#oldcode727 remoting/host/linux/linux_me2me_host.py:727: signal.alarm(30) On 2016/02/12 22:42:25, Sergey Ulanov wrote: > ...
4 years, 10 months ago (2016-02-12 23:03:04 UTC) #10
Jamie
On 2016/02/12 23:03:04, Jamie wrote: > ptal > > https://codereview.chromium.org/1685793003/diff/40001/remoting/host/linux/linux_me2me_host.py > File remoting/host/linux/linux_me2me_host.py (left): > ...
4 years, 10 months ago (2016-02-12 23:08:15 UTC) #11
Sergey Ulanov
On 2016/02/12 23:08:15, Jamie wrote: > Another option is to remove this wait-for-heartbeat logic (since ...
4 years, 10 months ago (2016-02-16 21:01:55 UTC) #12
Sergey Ulanov
lgtm
4 years, 10 months ago (2016-02-16 21:02:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685793003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685793003/60001
4 years, 10 months ago (2016-02-16 21:40:26 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-16 22:14:28 UTC) #18
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:55:20 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4dc4509a5cf240192dfeaafebf1986c0753814f7
Cr-Commit-Position: refs/heads/master@{#375680}

Powered by Google App Engine
This is Rietveld 408576698