• lambroslambrou's avatar
    Handle exception writing to Chromoting host's stdin. · acfbcb21
    lambroslambrou authored
    The linux_me2me_host script launches the host process, then writes the
    JSON config to the child's stdin. If the host process dies before the
    data is written to stdin, an IOError (EPIPE) exception is raised. This
    CL handles the exception and retries launching the host, instead of
    exiting the script.
    
    To test this, I added a time.sleep(5) call between launching the
    host and writing the config to stdin. This allowed me enough time to
    simulate the error by killing the host process.
    
    BUG=473441
    
    Review URL: https://codereview.chromium.org/1138613002
    
    Cr-Commit-Position: refs/heads/master@{#329273}
    acfbcb21
linux_me2me_host.py 49.2 KB