From owner-freebsd-alpha Thu Jul 27 14: 7: 1 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id A50EE37C11B; Thu, 27 Jul 2000 14:06:56 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id RAA03268; Thu, 27 Jul 2000 17:06:55 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id RAA70594; Thu, 27 Jul 2000 17:06:55 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 27 Jul 2000 17:06:55 -0400 (EDT) To: Mark Abene Cc: "David O'Brien" , freebsd-alpha@FreeBSD.ORG Subject: select problems ( was Re: weird XFree86 3.3.6 behavior...) In-Reply-To: <20000727164833.A18644@radicalmedia.com> References: <20000727022930.A9638@radicalmedia.com> <20000727000033.A44502@dragon.nuxi.com> <20000727035128.A9982@radicalmedia.com> <20000727164833.A18644@radicalmedia.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14720.41641.666813.600170@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mark Abene writes: > I have some new info regarding this problem. > Specifically, if 32 or more file descriptors are in use by the X server > (as shown by lsof), xscreensaver will hang the X server (causing the select > loop I described) after accepting a valid password to unlock. > Why the magic number of 32, I don't know, but it's consistent. 32 is the number of bits in an int. 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). 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message