From a84cfb3a49987a994ae124058dadad7ed3126e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 14 Aug 2012 21:22:30 +0200 Subject: [PATCH] kill killhelper in client destructor BUG: 305157 FIXED-IN: 4.9.1 REVIEW: 106022 --- client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.cpp b/client.cpp index ab9a5f576b..d2a6086618 100644 --- a/client.cpp +++ b/client.cpp @@ -210,6 +210,10 @@ Client::Client(Workspace* ws) */ Client::~Client() { + if (m_killHelperPID && !::kill(m_killHelperPID, 0)) { // means the process is alive + ::kill(m_killHelperPID, SIGTERM); + m_killHelperPID = 0; + } //SWrapper::Client::clientRelease(this); #ifdef HAVE_XSYNC if (syncRequest.alarm != None)