Date: Thu, 27 Jul 2000 17:06:55 -0400 (EDT) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Mark Abene <phiber@radicalmedia.com> Cc: "David O'Brien" <obrien@FreeBSD.ORG>, freebsd-alpha@FreeBSD.ORG Subject: select problems ( was Re: weird XFree86 3.3.6 behavior...) Message-ID: <14720.41641.666813.600170@grasshopper.cs.duke.edu> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14720.41641.666813.600170>