On Mon, 28 Jun 1999, Greg Haerr wrote:
> I can't get Micro-Windows to work with the serial mouse driver.
> It appears there's still possibly a bug in select(). Basically, the
> mouse works for about 1 second and then freezes.
As I read this, the first thing that pops into my head is that you're not
re-setting the struct timeval. Try setting up strace in the kernel, and
see what happens when you run it.
> It appears the serial driver queues stuff inbetween close/open's. Have
> you seen any of this activity?
My guess here (maybe) is a flow-control issue. You might find the
buffer/queue is actually in the mouse, and as soon as you open the device,
the flow-control lets the data come in.
Davey