From kde-commits Mon Mar 29 20:17:57 2004 From: =?utf-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 29 Mar 2004 20:17:57 +0000 To: kde-commits Subject: KDE_3_2_BRANCH: kdepim/kmail Message-Id: <20040329201757.8EC4D99C5 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108059148415669 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 ) {