Doing a bit more digging, OS error 11 is EAGAIN
. An error you typically get when some syscall operation was interrupted and you should try it again.
The usual way to deal with in C is to have a do-while loop which will repeat the write as long as you keep getting EAGAIN
… Is there any reason why we don’t do this automatically within println!()
?