Small fixes in cmake server logic
ClosedPublic

Authored by antonanikin on Apr 26 2017, 10:52 AM.

Details

Summary

The patch fixes:

  1. Error message about QLocalSocket::ServerNotFoundError when we try to connect to socket which is not already created by cmake server process.
  2. Error message about cmake server process crashing when we kill it in the destructor.
Test Plan

Tested on master branch

Diff Detail

Repository
R32 KDevelop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
antonanikin created this revision.Apr 26 2017, 10:52 AM
apol accepted this revision.Apr 26 2017, 11:05 AM
This revision is now accepted and ready to land.Apr 26 2017, 11:05 AM
This revision was automatically updated to reflect the committed changes.
rjvbb added a subscriber: rjvbb.Dec 8 2017, 9:22 PM

Just checking this commit didn't introduce a potential issue that'll be a RPITA to debug.

projectmanagers/cmake/cmakeserver.cpp
77

Is it certain that we aren't disconnecting QObject::destroyed signals here that should not be disconnected before m_process is actually destroyed?

I too did a disconnect() in a dtor thinking it was a prudent thing to do. All was fine for months until I ran into an application that crashed systematically on exit, accessing a stale QObject.