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

Issue 10905081: Pass Me2Me config via stdin. (Closed)

Created:
8 years, 3 months ago by Jamie
Modified:
8 years, 3 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, pam+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Pass Me2Me config via stdin. This allows the host to restart even if the config file is no longer readable (for example, if it is on an NFS share). One downside is that the host can no longer re-read its configuration without restarting. I ended up implementing a SIGTERM handler to provide clean shutdown. It's easily extractable into a separate CL; let me know if you'd like me to do that. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155314

Patch Set 1 #

Patch Set 2 : Delete debugging and clean up comments. #

Total comments: 15

Patch Set 3 : Reviewer comments. #

Patch Set 4 : Rebase #

Patch Set 5 : Fixed #include guard footer. #

Total comments: 25

Patch Set 6 : Improved variable names. #

Total comments: 7

Patch Set 7 : 7739 #

Total comments: 3

Patch Set 8 : Removed (probably) unnecessary clean-up code. Improved doc comment. #

Patch Set 9 : Reinstate and improve error handling. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -149 lines) Patch
D remoting/host/posix/sighup_listener.h View 1 chunk +0 lines, -22 lines 0 comments Download
D remoting/host/posix/sighup_listener.cc View 1 chunk +0 lines, -94 lines 0 comments Download
A + remoting/host/posix/signal_handler.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -6 lines 0 comments Download
A remoting/host/posix/signal_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +114 lines, -0 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 6 5 chunks +29 lines, -6 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/tools/me2me_virtual_host.py View 1 2 3 chunks +28 lines, -21 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Jamie
ptal
8 years, 3 months ago (2012-09-04 21:40:13 UTC) #1
alexeypa (please no reviews)
On 2012/09/04 21:40:13, Jamie wrote: > ptal Could you please wait checking it in until ...
8 years, 3 months ago (2012-09-04 21:44:23 UTC) #2
alexeypa (please no reviews)
Please don't take my accidental L G T M above as actual L G T ...
8 years, 3 months ago (2012-09-04 21:45:03 UTC) #3
Sergey Ulanov
https://chromiumcodereview.appspot.com/10905081/diff/2001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/2001/remoting/host/remoting_me2me_host.cc#newcode166 remoting/host/remoting_me2me_host.cc:166: void SignalHandler(int signum) { Why not separate SighupHandler() and ...
8 years, 3 months ago (2012-09-04 22:01:48 UTC) #4
Lambros
lgtm with comments http://codereview.chromium.org/10905081/diff/2001/remoting/host/posix/signal_handler.cc File remoting/host/posix/signal_handler.cc (right): http://codereview.chromium.org/10905081/diff/2001/remoting/host/posix/signal_handler.cc#newcode9 remoting/host/posix/signal_handler.cc:9: #include <list> nit: C++ after C ...
8 years, 3 months ago (2012-09-05 16:35:54 UTC) #5
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/10855249/ is in.
8 years, 3 months ago (2012-09-05 19:59:37 UTC) #6
Jamie
Alex, ptal to make sure this still makes sense after rebasing to your CL. In ...
8 years, 3 months ago (2012-09-05 21:15:38 UTC) #7
alexeypa (please no reviews)
It looks like there are a few issues in the CL. https://chromiumcodereview.appspot.com/10905081/diff/6004/remoting/host/posix/signal_handler.h File remoting/host/posix/signal_handler.h (right): ...
8 years, 3 months ago (2012-09-05 21:41:25 UTC) #8
alexeypa (please no reviews)
Also I don't see where OnConfigUpdated is called after the config is read from stdin.
8 years, 3 months ago (2012-09-05 21:42:28 UTC) #9
Jamie
OnConfigUpdated is being called, presumably by virtue of the fact that /dev/stdin behaves like a ...
8 years, 3 months ago (2012-09-06 00:18:49 UTC) #10
Lambros
Couple of naming nits I missed first time round :) http://codereview.chromium.org/10905081/diff/6004/remoting/host/posix/signal_handler.cc File remoting/host/posix/signal_handler.cc (right): http://codereview.chromium.org/10905081/diff/6004/remoting/host/posix/signal_handler.cc#newcode82 ...
8 years, 3 months ago (2012-09-06 00:47:19 UTC) #11
Jamie
Alex, do you still have concerns about this? https://chromiumcodereview.appspot.com/10905081/diff/6004/remoting/host/posix/signal_handler.cc File remoting/host/posix/signal_handler.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/6004/remoting/host/posix/signal_handler.cc#newcode82 remoting/host/posix/signal_handler.cc:82: bool ...
8 years, 3 months ago (2012-09-06 17:31:01 UTC) #12
alexeypa (please no reviews)
lgtm with nits. https://chromiumcodereview.appspot.com/10905081/diff/6004/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/6004/remoting/host/remoting_me2me_host.cc#newcode234 remoting/host/remoting_me2me_host.cc:234: #if defined(OS_POSIX) On 2012/09/06 00:18:50, Jamie ...
8 years, 3 months ago (2012-09-06 18:21:09 UTC) #13
Jamie
https://chromiumcodereview.appspot.com/10905081/diff/6004/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/6004/remoting/host/remoting_me2me_host.cc#newcode234 remoting/host/remoting_me2me_host.cc:234: #if defined(OS_POSIX) On 2012/09/06 18:21:09, alexeypa wrote: > On ...
8 years, 3 months ago (2012-09-06 18:32:33 UTC) #14
Jamie
fyi https://chromiumcodereview.appspot.com/10905081/diff/8005/remoting/host/posix/signal_handler.cc File remoting/host/posix/signal_handler.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/8005/remoting/host/posix/signal_handler.cc#newcode85 remoting/host/posix/signal_handler.cc:85: g_signal_listener = new SignalListener(); On 2012/09/06 18:21:10, alexeypa ...
8 years, 3 months ago (2012-09-06 18:52:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/10905081/15003
8 years, 3 months ago (2012-09-06 18:54:00 UTC) #16
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/10905081/diff/2005/remoting/host/posix/signal_handler.cc File remoting/host/posix/signal_handler.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/2005/remoting/host/posix/signal_handler.cc#newcode99 remoting/host/posix/signal_handler.cc:99: g_signal_listener = NULL; One problem with this is that ...
8 years, 3 months ago (2012-09-06 19:20:14 UTC) #17
Jamie
ptal https://chromiumcodereview.appspot.com/10905081/diff/2005/remoting/host/posix/signal_handler.cc File remoting/host/posix/signal_handler.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/2005/remoting/host/posix/signal_handler.cc#newcode99 remoting/host/posix/signal_handler.cc:99: g_signal_listener = NULL; On 2012/09/06 19:20:14, alexeypa wrote: ...
8 years, 3 months ago (2012-09-06 21:33:59 UTC) #18
alexeypa (please no reviews)
lgtm https://chromiumcodereview.appspot.com/10905081/diff/2005/remoting/host/posix/signal_handler.cc File remoting/host/posix/signal_handler.cc (right): https://chromiumcodereview.appspot.com/10905081/diff/2005/remoting/host/posix/signal_handler.cc#newcode99 remoting/host/posix/signal_handler.cc:99: g_signal_listener = NULL; On 2012/09/06 21:33:59, Jamie wrote: ...
8 years, 3 months ago (2012-09-06 23:37:33 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/10905081/4007
8 years, 3 months ago (2012-09-06 23:50:47 UTC) #20
commit-bot: I haz the power
Try job failure for 10905081-4007 (retry) on win_rel for step "update". It's a second try, ...
8 years, 3 months ago (2012-09-07 00:02:35 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/10905081/4007
8 years, 3 months ago (2012-09-07 00:11:20 UTC) #22
commit-bot: I haz the power
8 years, 3 months ago (2012-09-07 05:28:51 UTC) #23
Change committed as 155314

Powered by Google App Engine
This is Rietveld 408576698