Android: Don't use blocking queued connections for running ps

If ps is run from a different thread than the GUI thread, then we are
obviously not dealing with the "checkPID" function that's running every
second. We don't need to be overly prudent about starting another
process then. On the other hand, the blocking queued connection relies
on the ps shell not getting closed from a different thread in between
and it is generally a risk for creating dead locks.

Change-Id: Ief49fb18cc3199dc345c4d9ca0ee24b66d33343c
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
Ulf Hermann
2016-07-27 15:53:46 +02:00
parent 5d34676fdc
commit cbd738ab90
2 changed files with 15 additions and 21 deletions

View File

@@ -79,7 +79,6 @@ private:
void logcatReadStandardError();
void logcatReadStandardOutput();
void asyncStart();
Q_INVOKABLE QByteArray runPs();
void adbKill(qint64 pid);
QStringList selector() const { return m_selector; }