Hi all,

If I try to read from a master PTY when no slaves are open I get an IO error. This would be okay with me, except: - Select keeps flaging the fd as having read data, resulting in 100% CPU utilization
and
- The slave end is the controlling TTY for a process, so it is possible to pick up the slave part again by opening /dev/tty, at which point reading from the master end, again, behaves as it should.

My main problem is that I have not found a way to wait for the master end to behave sanely. At the moment, I'm stuck with leaving a dangling file descriptor on the slave end to the TTY, despite there being nothing useful done with that file descriptor.

Is this a kernel bug (I have found no documentation for this behavior)? Is this intentional (then how do I wait without polling for reads from the master to make sense again)? Am I missing something here?

Thanks,
Shachar

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to