From owner-freebsd-questions Tue Jan 28 03:17:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07005 for questions-outgoing; Tue, 28 Jan 1997 03:17:57 -0800 (PST) Received: from narcissus.ml.org (root@brosenga.st.pitzer.edu [134.173.120.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA07000 for ; Tue, 28 Jan 1997 03:17:55 -0800 (PST) Received: (from ben@localhost) by narcissus.ml.org (8.7.5/8.7.3) id DAA26192; Tue, 28 Jan 1997 03:17:08 -0800 (PST) Date: Tue, 28 Jan 1997 03:17:08 -0800 (PST) From: Snob Art Genre To: Mikko Tyolajarvi cc: questions@freebsd.org Subject: Re: fvwm CPU consumption In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by freefall.freebsd.org id DAA07001 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 27 Jan 1997, Mikko Tyolajarvi wrote: > > The problem is caused by fvwm trying to select() too many file descriptors > (more than SELECT_MAX or whatever, see man select(2)), causing select() to > return immidiately with an error code, resulting in a spin loop. > > There is an internal fvwm library function that arrives at this number by > checking the largest number of file descriptors a process can have open (I > think it uses getdtablesize() -- grep for it in fvwm/lib/*.c) Make sure it > returns a smaller number than the limit for select(). Hmmm . . . I am not a programmer (yet), I'm not at all sure I can do this correctly. Would anyone out there be willing to write a patch suitable for application to fvwm or (preferably) afterstep? I can give a URL for the source to afterstep or I can just mail it to you. > > Hope this helps, > /Mikko > -- > Mikko Työläjärvi_____________________________________________mikko@dynas.se > DynaSoft > > Thanks, Mikko. Ben The views expressed above are not those of the Worker's Compensation Board of Queensland, Australia.