DescriptionWait 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
Messages
Total messages: 8 (0 generated)
|