spread icon indicating copy to clipboard operation
spread copied to clipboard

spread: deal with crashing qemu in waitPortUp()

Open mvo5 opened this issue 4 years ago • 0 comments

Someones qemu crashes or dies while starting up. If that happens spread does not detected it and keeps trying to connect to the port until it times out. This leaves the user in the dark why the connection did not happen.

This commit improves this in two ways:

  1. Show the stdout/stderr output of qemu on the terminal to ensure that users are aware of any issues there.
  2. Add a check in waitPortUp() to detect if the command that is responsible for the setting up of the port exited in an unexpected way.

mvo5 avatar Jan 08 '20 09:01 mvo5