mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 13:44:36 +02:00
fix non-block, add exit code debug
This commit is contained in:
parent
e092b8c537
commit
15fdcb4fe0
2 changed files with 5 additions and 3 deletions
|
@ -73,7 +73,7 @@ void AssignmentClientMonitor::waitOnChildren(int msecs) {
|
||||||
|
|
||||||
if (childProcess->state() == QProcess::NotRunning) {
|
if (childProcess->state() == QProcess::NotRunning) {
|
||||||
i.remove();
|
i.remove();
|
||||||
} else {
|
} else if (msecs > 0) {
|
||||||
qDebug() << "Waiting on child process" << childProcess->processId() << "to finish.";
|
qDebug() << "Waiting on child process" << childProcess->processId() << "to finish.";
|
||||||
bool finished = childProcess->waitForFinished(msecs);
|
bool finished = childProcess->waitForFinished(msecs);
|
||||||
if (finished) {
|
if (finished) {
|
||||||
|
|
|
@ -9,10 +9,12 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#include "AssignmentClientApp.h"
|
#include "AssignmentClientApp.h"
|
||||||
|
|
||||||
|
#include <QtCore/QDebug>
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
AssignmentClientApp app(argc, argv);
|
AssignmentClientApp app(argc, argv);
|
||||||
return app.exec();
|
int acReturn = app.exec();
|
||||||
|
qDebug() << "assignment-client process" << app.applicationPid() << "exiting with status code" << acReturn;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue