Date: Thu, 27 Jul 2000 17:42:57 -0400 From: Mark Abene <phiber@radicalmedia.com> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: "David O'Brien" <obrien@FreeBSD.ORG>, freebsd-alpha@FreeBSD.ORG Subject: Re: select problems ( was Re: weird XFree86 3.3.6 behavior...) Message-ID: <20000727174257.A19445@radicalmedia.com> In-Reply-To: <14720.41641.666813.600170@grasshopper.cs.duke.edu>; from Andrew Gallatin on Thu, Jul 27, 2000 at 05:06:55PM -0400 References: <20000727022930.A9638@radicalmedia.com> <20000727000033.A44502@dragon.nuxi.com> <20000727035128.A9982@radicalmedia.com> <20000727164833.A18644@radicalmedia.com> <14720.41641.666813.600170@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 27, 2000 at 05:06:55PM -0400, Andrew Gallatin wrote: > > 32 is the number of bits in an int. Or, (life + universe + everything) - 10 :) > > Is the Xserver select()'ing on a real fd_set, or are they passing in an > int? Furthermore, is the code using FD_SET(n, p) to set the bits > they're selecting on, or are they using (1 << fd). They're using real fd_sets as args to select, however it appears they are doing mask arithmetic with ints. This may be the problem, since an fd_set on Alpha is 64 bits. I'll try a little experiment... > > If the latter, try changing it to use FD_SET (or at least use (1L << fd)) > > Also, there was a bug in select (both in the kernel & in > /usr/include/sys/types.h) which Peter Wemm fixed on Feb. 20. > Was this X server really compiled on a 4.0-RELEASE or newer system? > > Drew > What was the nature of this bug you mention? And yes, I built X from the ports collection on 4.0-RELEASE. Cheers, -Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000727174257.A19445>