Bug 140995

Summary: [PATCH] Many MB of error messages in ~/.xsession-errors
Product: kmilo Reporter: Ph. Marek <philipp>
Component: generalAssignee: Unknown <null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: cfeck
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ph. Marek 2007-02-01 10:31:59 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I have a Dell Latitude D510, and get many Megabytes of log output in ~/.xsession-errors.
I measured ~40kB in 60 seconds.

Looking at 
   http://websvn.kde.org/branches/KDE/3.5/kdeutils/kmilo/delli8k/delli8k.cpp?view=markup
I'd suggest the following patch, to avoid that problem.

Currently I have to logoff/logon every day at least once, to free some 50 MB of space.


Thank you!

--- delli9k.cpp.orig	2007-01-22 10:13:30.000000000 +0100
+++ delli8k.cpp	2007-01-22 10:17:53.000000000 +0100
@@ -239,12 +239,18 @@

 int DellI8kMonitor::fn_status( int fd )
 {
+    static int error_already_printed;
     int args[1];
     int rc;
 
     if( ( rc = ioctl( fd, I8K_FN_STATUS, &args ) ) < 0 )
     {
-        kdError() << "KMilo: DellI8kMonitor: ioctl failed in fn_status()" << endl;
+        if (!error_already_printed)
+        {
+            kdError() << "KMilo: DellI8kMonitor: ioctl failed in fn_status()" << endl;
+            error_already_printed = 1;
+        }
+
         return rc;
     }
Comment 1 Christoph Feck 2011-09-15 18:52:03 UTC
KMilo is no longer maintained, marking all bugs accordingly.