Bug 140995 - [PATCH] Many MB of error messages in ~/.xsession-errors
Summary: [PATCH] Many MB of error messages in ~/.xsession-errors
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmilo
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 10:31 UTC by Ph. Marek
Modified: 2011-09-15 18:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.