On Mon, 18 Sep 2000, Lee Brown wrote:
> My understanding of select is that it still blocks, it just multiplexes
> the blocking.
With a zero timeout it just checks and exit, thought that's what you meant by
non-blocking.
> Let me rephrase my question. When I open a normal file I can pass as a
> flag O_ASYNC. This will cause a SIGIO to be sent to the process whenever
> input becomes possible on the file descriptor. Is this possible with a
> gii device?
IIRC we decided the libraries should stay way from signals so as not to get
mixed up with anything the app does. You can get the same effect by
launching a thread and doing a blocking poll. When the poll comes back
you can either send yourself a signal or use another mechanism to
alert other threads.
--
Brian