From owner-freebsd-alpha Thu Jul 27 14:43: 3 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from eel.radicalmedia.com (eel.radicalmedia.com [204.254.246.9]) by hub.freebsd.org (Postfix) with ESMTP id EA2F137C0D0; Thu, 27 Jul 2000 14:43:00 -0700 (PDT) (envelope-from phiber@eel.radicalmedia.com) Received: (from phiber@localhost) by eel.radicalmedia.com (8.9.3/8.9.3) id RAA19545; Thu, 27 Jul 2000 17:42:58 -0400 (EDT) Date: Thu, 27 Jul 2000 17:42:57 -0400 From: Mark Abene To: Andrew Gallatin Cc: "David O'Brien" , freebsd-alpha@FreeBSD.ORG Subject: Re: select problems ( was Re: weird XFree86 3.3.6 behavior...) Message-ID: <20000727174257.A19445@radicalmedia.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <14720.41641.666813.600170@grasshopper.cs.duke.edu>; from Andrew Gallatin on Thu, Jul 27, 2000 at 05:06:55PM -0400 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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