On 08.22, J.A. Magallon wrote:
> Hi.
> 
> After latest update, gdm eats 100% CPU when I am loged in (not when
> nobody is logged).
> 
> Anybody else suffers this ?
> 
> TIA

This cures it, at least in my box. I tried also with a timeout in
select, but did not work. This is a bad hacked bandaid, but works:

--- gdm-2.4.2.101/daemon/slave.c.orig   2003-08-23 01:01:10.000000000
+0200
+++ gdm-2.4.2.101/daemon/slave.c        2003-08-23 01:15:56.000000000 +0200
@@ -372,6 +372,8 @@
                            d->session_output_fd >= 0)
                                FD_SET (d->session_output_fd, &rfds);
 
+                       usleep(100000);
+
                        ret = select (MAX (wp->fd_r, d->session_output_fd)+1,
&rfds, NULL, NULL, NULL);
                        if (ret > 0) {
                                if (FD_ISSET (wp->fd_r, &rfds)) {


-- 
J.A. Magallon <[EMAIL PROTECTED]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-rc2-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))

Reply via email to