Showing the changes to assignment-client/src/AssignmentClientMonitor.cpp (1 of 1 file). Show all
Unified · Split
| @@ -74,6 +74,7 @@ void AssignmentClientMonitor::waitOnChildren(int msecs) { · 73 unmodified lines | ||
| 74 | 74 | if (childProcess->state() == QProcess::NotRunning) { |
| 75 | 75 | i.remove(); |
| 76 | 76 | } else { |
| 77 | + qDebug() << "Waiting on child process" << childProcess->processId() << "to finish."; | |
| 77 | 78 | bool finished = childProcess->waitForFinished(msecs); |
| 78 | 79 | if (finished) { |
| 79 | 80 | i.remove(); |
| @@ -89,6 +90,7 @@ void AssignmentClientMonitor::stopChildProcesses() { · 9 unmodified lines | ||
| 89 | 90 | QMutableListIterator<QProcess*> i(_childProcesses); |
| 90 | 91 | while (i.hasNext()) { |
| 91 | 92 | QProcess* childProcess = i.next(); |
| 93 | + qDebug() << "Attempting to terminate child process" << childProcess->processId(); | |
| 92 | 94 | childProcess->terminate(); |
| 93 | 95 | } |
| 94 | 96 | |
| @@ -99,6 +101,7 @@ void AssignmentClientMonitor::stopChildProcesses() { · 4 unmodified lines | ||
| 99 | 101 | QMutableListIterator<QProcess*> j(_childProcesses); |
| 100 | 102 | while (j.hasNext()) { |
| 101 | 103 | QProcess* childProcess = j.next(); |
| 104 | + qDebug() << "Attempting to kill child process" << childProcess->processId(); | |
| 102 | 105 | childProcess->kill(); |
| 103 | 106 | } |
| 104 | 107 | |