Return success on Linux when host start times out.
On Linux, the user-session binary, after forking the host deamon, keeps running in the foreground to relay log messages and return the ultimate success/failure of starting the host to the caller. However, if the host takes more than 120 seconds to signal it is online, the foreground process will time out and quit, leaving the background process running. With this commit, the foreground process will optimistically return success to the calling process in this case, rather than failure as it did previously. This allows the setup flow to be completed even when replication delays or other issues cause the host to take a long time to start, as an error return code during initial setup would cause the host to be automatically unregistered from the directory. Change-Id: Ie8d157cf2bc433a59857b65b495cc79aeea63ffc Reviewed-on: https://chromium-review.googlesource.com/1086386Reviewed-by:Jamie Walch <jamiewalch@chromium.org> Commit-Queue: Erik Jensen <rkjnsn@chromium.org> Cr-Commit-Position: refs/heads/master@{#565092}
Showing
Please register or sign in to comment