[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kdm/backend
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2004-08-24 15:20:59
Message-ID: 20040824152059.119D01D90 () office ! kde ! org
[Download RAW message or body]

CVS commit by ossi: 

fix for this sissy-os freebsd whose brain is too small for a timeout of 
slightly more than a billion seconds ...


  M +12 -7     dm.c   1.102


--- kdebase/kdm/backend/dm.c  #1.101:1.102
@@ -1081,5 +1081,5 @@ MainLoop (void)
 {
     struct display *d;
-    struct timeval tv;
+    struct timeval *tvp, tv;
     time_t to;
     int nready;
@@ -1121,4 +1121,7 @@ MainLoop (void)
         if (utmpTimeout < to)
             to = utmpTimeout;
+        if (to == TO_INF)
+            tvp = 0;
+        else {
         to -= now;
         if (to < 0)
@@ -1126,6 +1129,8 @@ MainLoop (void)
         tv.tv_sec = to;
         tv.tv_usec = 0;
+            tvp = &tv;
+        }
         reads = WellKnownSocketsMask;
-        nready = select (WellKnownSocketsMax + 1, &reads, 0, 0, &tv);
+        nready = select (WellKnownSocketsMax + 1, &reads, 0, 0, tvp);
         Debug ("select returns %d\n", nready);
         time (&now);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic