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

Issue 784243003: Ensure the Chromoting Host process eventually terminates when shut down. (Closed)

Created:
6 years ago by Lambros
Modified:
6 years ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Ensure the Chromoting Host process eventually terminates when shut down. The host process is meant to shut down cleanly when receiving a SIGTERM, or if there is a configuration error. This CL implements a timed watchdog, running on a new thread, that triggers a forced exit of the process, in case it fails to terminate normally within a reasonable time (for example, if some thread is inside a blocking call). BUG=420090 TEST=The watchdog shouldn't normally trigger, but I manually added a Sleep() to some thread to verify that it triggers if a thread is blocked for too long. Committed: https://crrev.com/df715881c00599155a76e3fae40ba904203e322f Cr-Commit-Position: refs/heads/master@{#307819}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Increase lifetime of watchdog, named constant for timeout #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -4 lines) Patch
M remoting/host/remoting_me2me_host.cc View 1 7 chunks +22 lines, -4 lines 1 comment Download
A remoting/host/shutdown_watchdog.h View 1 chunk +42 lines, -0 lines 0 comments Download
A remoting/host/shutdown_watchdog.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M remoting/remoting_host_srcs.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Lambros
jamiewalch: Please review, it's not a big CL :) lukasza: More FYI, but need to ...
6 years ago (2014-12-10 02:25:08 UTC) #2
Lambros
Added kelvinp, for Chrome OS - do we want this code on Chrome OS?
6 years ago (2014-12-10 02:29:19 UTC) #4
Jamie
lgtm https://codereview.chromium.org/784243003/diff/1/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/784243003/diff/1/remoting/host/remoting_me2me_host.cc#newcode320 remoting/host/remoting_me2me_host.cc:320: // Destroying the watchdog will disarm it, so ...
6 years ago (2014-12-10 03:02:23 UTC) #5
Łukasz Anforowicz
I am not sure if it is a good idea to disarm/destroy the watchdog when ...
6 years ago (2014-12-10 17:15:31 UTC) #6
Lambros
ptal
6 years ago (2014-12-10 22:48:24 UTC) #8
Łukasz Anforowicz
lgtm LGTM https://codereview.chromium.org/784243003/diff/20001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/784243003/diff/20001/remoting/host/remoting_me2me_host.cc#newcode140 remoting/host/remoting_me2me_host.cc:140: const int kShutdownTimeoutSeconds = 15; Thanks. I'll ...
6 years ago (2014-12-10 23:20:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784243003/20001
6 years ago (2014-12-10 23:35:59 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-11 01:14:38 UTC) #12
commit-bot: I haz the power
6 years ago (2014-12-11 01:16:08 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/df715881c00599155a76e3fae40ba904203e322f
Cr-Commit-Position: refs/heads/master@{#307819}

Powered by Google App Engine
This is Rietveld 408576698