Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 1997 03:17:08 -0800 (PST)
From:      Snob Art Genre <ben@narcissus.ml.org>
To:        Mikko Tyolajarvi <mikko@dynas.se>
Cc:        questions@freebsd.org
Subject:   Re: fvwm CPU consumption
Message-ID:  <Pine.BSF.3.91.970128031243.26134A-100000@narcissus.ml.org>
In-Reply-To: <m0votep-000JeMC@spirit>

next in thread | previous in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970128031243.26134A-100000>