If a previously plugged in USB serial port is unplugged... and then a write() is attempted... the app goes into a tight loop with no exit.
Error is "Error Bad file descriptor calling write(...)"
and I suspect it's not handled in serialport_unix.cpp around line 309 where it says
// We carefully DON'T break out of this loop.
Is there a way this can just surface the error once back to the higher levels (and indeed maybe cause a close to occur if really not there any longer) ?
This looks very similar to #115
Similar , but this is on write and that is on read... which I think are different internal functions.
Working on this in #345