From 5079d9f1a593a3db39bc98810471c7e27fcaefcf Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 11 Jun 2008 13:51:20 +0000 Subject: [PATCH] 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 --- client.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 599a3ad0f6..13c390aa87 100644 --- a/client.cpp +++ b/client.cpp @@ -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; } }