forked from qt-creator/qt-creator
Maemo: Fix race condition in SSH output reader.
This commit is contained in:
@@ -132,9 +132,11 @@ void MaemoInteractiveSshConnection::runCommand(const QString &command)
|
||||
const char * const error = lastError();
|
||||
if (error)
|
||||
throw MaemoSshException(tr("SSH error: %1").arg(error));
|
||||
const char * output = ssh.readAndReset(channel(), alloc);
|
||||
const char * const output = ssh.readAndReset(channel(), alloc);
|
||||
if (output) {
|
||||
emit remoteOutput(QString::fromUtf8(output));
|
||||
if (!done)
|
||||
done = strstr(output, m_prompt) != 0;
|
||||
delete[] output;
|
||||
}
|
||||
} while (!done && !stopRequested());
|
||||
|
||||
@@ -6,7 +6,6 @@ SUPPORT_QT_MAEMO = $$(QTCREATOR_WITH_MAEMO)
|
||||
# INCLUDEPATH += $$PWD/../../../libs/3rdparty/net7ssh/src
|
||||
# INCLUDEPATH += $$PWD/../../../libs/3rdparty/botan/build
|
||||
# LIBS += -l$$qtLibraryTarget(Net7ssh) -l$$qtLibraryTarget(Botan)
|
||||
|
||||
HEADERS += $$PWD/maemorunconfiguration.h \
|
||||
$$PWD/maemomanager.h \
|
||||
$$PWD/maemotoolchain.h \
|
||||
|
||||
Reference in New Issue
Block a user