Issue while reading from tty driver