forked from qt-creator/qt-creator
ConsoleProcess: Uniform the common interface of QtcProcess
This is a preliminary step before merging ConsoleProcess into QtcProcess. Remove unused detachStub(). Move killProcess() and killStub() to private section. They are not used outside. Change-Id: I45f55027fa537cc800cd1776478390725f7236c4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@ -866,18 +866,6 @@ void ConsoleProcess::stubExited()
|
||||
#endif
|
||||
}
|
||||
|
||||
void ConsoleProcess::detachStub()
|
||||
{
|
||||
if (HostOsInfo::isAnyUnixHost()) {
|
||||
if (d->m_stubSocket && d->m_stubSocket->isWritable()) {
|
||||
d->m_stubSocket->write("d", 1);
|
||||
d->m_stubSocket->flush();
|
||||
}
|
||||
stubServerShutdown();
|
||||
d->m_stubPid = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void ConsoleProcess::cleanupInferior()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
|
@ -93,11 +93,8 @@ public:
|
||||
|
||||
void kickoffProcess();
|
||||
void interruptProcess();
|
||||
void killProcess();
|
||||
void killStub();
|
||||
|
||||
qint64 applicationMainThreadID() const;
|
||||
void detachStub();
|
||||
|
||||
int exitCode() const;
|
||||
QProcess::ExitStatus exitStatus() const;
|
||||
@ -125,6 +122,8 @@ private:
|
||||
void stubExited();
|
||||
void cleanupAfterStartFailure(const QString &errorMessage);
|
||||
void finish(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void killProcess();
|
||||
void killStub();
|
||||
|
||||
static QString modeOption(Mode m);
|
||||
static QString msgCommChannelFailed(const QString &error);
|
||||
|
Reference in New Issue
Block a user