Closed HU90m closed 5 months ago
In what circumstance would the write fail? If the TTY is not open on the other end it should just block rather than fail?
These are non blocking writes, so it fails with errno EAGAIN
. We could make them blocking, but I don't want the whole sim to stop just because the TTY hasn't been connected.
Currently if there is failure to write to the TTY or file, an assert fails and the simulation core dumps.
This patch changes that to log the error that was observed and continue the simulation.