fix non-block, add exit code debug

This commit is contained in:
Stephen Birarda 2015-05-08 15:07:59 -07:00
parent e092b8c537
commit 15fdcb4fe0
2 changed files with 5 additions and 3 deletions

View file

@ -73,7 +73,7 @@ void AssignmentClientMonitor::waitOnChildren(int msecs) {
if (childProcess->state() == QProcess::NotRunning) {
i.remove();
} else {
} else if (msecs > 0) {
qDebug() << "Waiting on child process" << childProcess->processId() << "to finish.";
bool finished = childProcess->waitForFinished(msecs);
if (finished) {

View file

@ -9,10 +9,12 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AssignmentClientApp.h"
#include <QtCore/QDebug>
int main(int argc, char* argv[]) {
AssignmentClientApp app(argc, argv);
return app.exec();
int acReturn = app.exec();
qDebug() << "assignment-client process" << app.applicationPid() << "exiting with status code" << acReturn;
}