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 Review URL: https://codereview.chromium.org/335303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278267 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment