diff --git a/client.cpp b/client.cpp index 97e5f5f791..39f41c3db5 100644 --- a/client.cpp +++ b/client.cpp @@ -208,6 +208,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)