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

Issue 335303002: Wait for CRD daemon process to be killed before returning. (Closed)

Created:
6 years, 6 months ago by Lambros
Modified:
6 years, 6 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Visibility:
Public.

Description

Wait for CRD daemon process to be killed before returning. This should mean that "/etc/init.d/chrome-remote-desktop restart" will stop the service and won't try to start it again until the daemon is killed. A timeout is used to make sure that system shutdown is not paused indefinitely if the daemon is unkillable. Note that, since the daemon is not a child process, os.waitpid() cannot be used for this. The psutil Python module is used instead. Some other parts of the script have been updated as well to use psutil methods. This is slightly safer, as psutil has some PID-reuse detection built in. BUG=334437 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278267

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -19 lines) Patch
M remoting/host/linux/linux_me2me_host.py View 5 chunks +25 lines, -19 lines 3 comments Download

Messages

Total messages: 8 (0 generated)
Lambros
6 years, 6 months ago (2014-06-17 02:29:56 UTC) #1
Sergey Ulanov
lgtm https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py#newcode984 remoting/host/linux/linux_me2me_host.py:984: if proc is not None: nit: why not ...
6 years, 6 months ago (2014-06-18 00:23:58 UTC) #2
Lambros
https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py#newcode984 remoting/host/linux/linux_me2me_host.py:984: if proc is not None: On 2014/06/18 00:23:58, Sergey ...
6 years, 6 months ago (2014-06-18 00:44:57 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py#newcode984 remoting/host/linux/linux_me2me_host.py:984: if proc is not None: On 2014/06/18 00:44:57, Lambros ...
6 years, 6 months ago (2014-06-18 08:01:28 UTC) #4
Lambros
On 2014/06/18 08:01:28, Sergey Ulanov wrote: > https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py > File remoting/host/linux/linux_me2me_host.py (right): > > https://codereview.chromium.org/335303002/diff/1/remoting/host/linux/linux_me2me_host.py#newcode984 ...
6 years, 6 months ago (2014-06-18 21:24:30 UTC) #5
Lambros
The CQ bit was checked by lambroslambrou@chromium.org
6 years, 6 months ago (2014-06-18 21:25:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/335303002/1
6 years, 6 months ago (2014-06-18 21:28:39 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 04:16:44 UTC) #8
Message was sent while issue was closed.
Change committed as 278267

Powered by Google App Engine
This is Rietveld 408576698