[chardev] In case of stdin redirection, SYS_READC semihost call will block in the chardev backend when EOF is reached. Description of problem: The previous command hangs, EOF is not detected. Steps to reproduce: 1. 2. 3. Additional information: