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

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdepim/kmail
From:       Ingo Klöcker <kloecker () kde ! org>
Date:       2004-03-29 20:17:57
Message-ID: 20040329201757.8EC4D99C5 () office ! kde ! org
[Download RAW message or body]

CVS commit by kloecker: 

Backport CVS commit by gungl: 

avoid accumulation of output from different processes (fixes 61305)


  M +5 -1      kmfilteraction.cpp   1.114.4.2


--- kdepim/kmail/kmfilteraction.cpp  #1.114.4.1:1.114.4.2
@@ -498,6 +498,10 @@ KMFilterAction::ReturnCode KMFilterActio
     return ErrorButGoOn;
 
-  if ( !shProc.normalExit() || shProc.exitStatus() != 0 )
+  if ( !shProc.normalExit() || shProc.exitStatus() != 0 ) {
+    // eat the output to avoid acummulation for following processes
+    if ( withOutput ) 
+      kmkernel->getCollectedStdOut( &shProc );
     return ErrorButGoOn;
+  }
 
   if ( withOutput ) {


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

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