print out state before wait

This commit is contained in:
Stephen Birarda 2015-05-08 15:10:37 -07:00
parent 15fdcb4fe0
commit fe2775ca94
2 changed files with 5 additions and 0 deletions

View file

@ -71,6 +71,8 @@ void AssignmentClientMonitor::waitOnChildren(int msecs) {
while (i.hasNext()) {
QProcess* childProcess = i.next();
qDebug() << "The current state of process" << childProcess->processId() << "is" << childProcess->state();
if (childProcess->state() == QProcess::NotRunning) {
i.remove();
} else if (msecs > 0) {

View file

@ -15,6 +15,9 @@
int main(int argc, char* argv[]) {
AssignmentClientApp app(argc, argv);
int acReturn = app.exec();
qDebug() << "assignment-client process" << app.applicationPid() << "exiting with status code" << acReturn;
return acReturn;
}