eaf30f067c
The pollin flag must be cleared when the input buffer (pty slave) is flushed. This ensures that the POLLIN event is not signaled to the application, when there is not data to read.