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 | if (childProcess->state() == QProcess::NotRunning) { | 74 | if (childProcess->state() == QProcess::NotRunning) { |
| 75 | i.remove(); | 75 | i.remove(); |
| 76 | } else { | 76 | } else { |
| 77 | qDebug() << "Waiting on child process" << childProcess->processId() << "to finish."; | ||
| 77 | bool finished = childProcess->waitForFinished(msecs); | 78 | bool finished = childProcess->waitForFinished(msecs); |
| 78 | if (finished) { | 79 | if (finished) { |
| 79 | i.remove(); | 80 | i.remove(); |
| @@ -89,6 +90,7 @@ void AssignmentClientMonitor::stopChildProcesses() { · 9 unmodified lines | |||
| 89 | QMutableListIterator<QProcess*> i(_childProcesses); | 90 | QMutableListIterator<QProcess*> i(_childProcesses); |
| 90 | while (i.hasNext()) { | 91 | while (i.hasNext()) { |
| 91 | QProcess* childProcess = i.next(); | 92 | QProcess* childProcess = i.next(); |
| 93 | qDebug() << "Attempting to terminate child process" << childProcess->processId(); | ||
| 92 | childProcess->terminate(); | 94 | childProcess->terminate(); |
| 93 | } | 95 | } |
| 94 | 96 | ||
| @@ -99,6 +101,7 @@ void AssignmentClientMonitor::stopChildProcesses() { · 4 unmodified lines | |||
| 99 | QMutableListIterator<QProcess*> j(_childProcesses); | 101 | QMutableListIterator<QProcess*> j(_childProcesses); |
| 100 | while (j.hasNext()) { | 102 | while (j.hasNext()) { |
| 101 | QProcess* childProcess = j.next(); | 103 | QProcess* childProcess = j.next(); |
| 104 | qDebug() << "Attempting to kill child process" << childProcess->processId(); | ||
| 102 | childProcess->kill(); | 105 | childProcess->kill(); |
| 103 | } | 106 | } |
| 104 | 107 | ||