do not block waiting for the kill_helper to be gone, otherwise

kwin gets stuck
BUG: 156998

svn path=/trunk/KDE/kdebase/workspace/; revision=819519
This commit is contained in:
Dirk Mueller 2008-06-11 13:51:20 +00:00
parent 08d1c58efa
commit 5079d9f1a5

View file

@ -1114,7 +1114,10 @@ void Client::gotPing( Time timestamp )
if( process_killer != NULL )
{
process_killer->kill();
delete process_killer;
// recycle when the process manager has noticed that the process exited
// a delete process_killer here sometimes causes a hang in waitForFinished
connect(process_killer, SIGNAL(finished(int, QProcess::ExitStatus)), process_killer,
SLOT(deleteLater()));
process_killer = NULL;
}
}