[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: io_select support for netfs
From: |
Thomas Bushnell, BSG |
Subject: |
Re: io_select support for netfs |
Date: |
28 Jul 2004 13:53:47 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Marco Gerards <metgerards@student.han.nl> writes:
> In libnetfs/mutations.h the macro IO_SELECT_REPLY_PORT is not
> defined. That means that the netfs_S_io_select function does not get
> the reply port.
>
> If someone wants to override netfs_S_io_select, the function simply
> won't work correctly because the reply port is required. The patch
> for the console client I sent in yesterday overrides netfs_S_io_select
> so this change is required in order to make it work correctly.
Be very careful in general with select on network thingies. This
doesn't apply to your use, but I want it on the record. To return
select true means that you can immediately do I/O with no waiting.
That means that you certainly already have the data to read here on
the local computer, you cannot reliably expect to read something over
a network, ever.
Thomas