[GRASS5] Windows native Xdriver

Mike Thomas mthomas at gil.com.au
Wed May 1 00:49:03 EDT 2002


Hi Glynn.

Thanks for the help.

> I can think of one change which might cause this. When no client is
> connected, XDRIVER no longer polls the monitor socket; instead, it
> uses select() to wait until either a client connects, or until an
> event can be read from the connection to the X server.
>
> For this to work with libW11, the descriptor returned by
> ConnectionNumber() would have to be readable according to select().
>
> Currently, libW11/w32/xlib.c has:
>
> int
> XConnectionNumber(Display* display)
> {
> int fd;
> NT_debug ("XConnectionNumber\n");
> fd = open ("/tmp/windows", O_NONBLOCK, 0);
> return 999;
> }
>
> This won't work, but returning "fd" might.

I was afraid you might say this, as I was getting nonsense from the call to
open() when I tried returning the fd instead of 999 (and also in a small
test program which I am following up in more detail).

I was hoping that this might not have been relevant to the problem, but it
seems that we have both arrived at the same place.

Cheers

Mike Thomas.





More information about the grass-dev mailing list