[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kqueue on tty



hello misc@

Is it normal that kqueue generate event after flushing tty (ioctl(TIOCFLUSH))?
Poll/select doesn't do this, because after flushing tty's input queue is empty.

        if (events & (POLLIN | POLLRDNORM)) {
                if (ttnread(tp) > 0 || (!ISSET(tp->t_cflag, CLOCAL) &&
                       ^^^

Btw, what reason for wake up readers after flushing?