mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
add helpful debug for AC monitor cleanup
This commit is contained in:
parent
897ed84cca
commit
78a1bcdcae
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,7 @@ void AssignmentClientMonitor::waitOnChildren(int msecs) {
|
|||
if (childProcess->state() == QProcess::NotRunning) {
|
||||
i.remove();
|
||||
} else {
|
||||
qDebug() << "Waiting on child process" << childProcess->processId() << "to finish.";
|
||||
bool finished = childProcess->waitForFinished(msecs);
|
||||
if (finished) {
|
||||
i.remove();
|
||||
|
@ -89,6 +90,7 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
|||
QMutableListIterator<QProcess*> i(_childProcesses);
|
||||
while (i.hasNext()) {
|
||||
QProcess* childProcess = i.next();
|
||||
qDebug() << "Attempting to terminate child process" << childProcess->processId();
|
||||
childProcess->terminate();
|
||||
}
|
||||
|
||||
|
@ -99,6 +101,7 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
|||
QMutableListIterator<QProcess*> j(_childProcesses);
|
||||
while (j.hasNext()) {
|
||||
QProcess* childProcess = j.next();
|
||||
qDebug() << "Attempting to kill child process" << childProcess->processId();
|
||||
childProcess->kill();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue