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) {
|
if (childProcess->state() == QProcess::NotRunning) {
|
||||||
i.remove();
|
i.remove();
|
||||||
} else {
|
} else {
|
||||||
|
qDebug() << "Waiting on child process" << childProcess->processId() << "to finish.";
|
||||||
bool finished = childProcess->waitForFinished(msecs);
|
bool finished = childProcess->waitForFinished(msecs);
|
||||||
if (finished) {
|
if (finished) {
|
||||||
i.remove();
|
i.remove();
|
||||||
|
@ -89,6 +90,7 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
||||||
QMutableListIterator<QProcess*> i(_childProcesses);
|
QMutableListIterator<QProcess*> i(_childProcesses);
|
||||||
while (i.hasNext()) {
|
while (i.hasNext()) {
|
||||||
QProcess* childProcess = i.next();
|
QProcess* childProcess = i.next();
|
||||||
|
qDebug() << "Attempting to terminate child process" << childProcess->processId();
|
||||||
childProcess->terminate();
|
childProcess->terminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +101,7 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
||||||
QMutableListIterator<QProcess*> j(_childProcesses);
|
QMutableListIterator<QProcess*> j(_childProcesses);
|
||||||
while (j.hasNext()) {
|
while (j.hasNext()) {
|
||||||
QProcess* childProcess = j.next();
|
QProcess* childProcess = j.next();
|
||||||
|
qDebug() << "Attempting to kill child process" << childProcess->processId();
|
||||||
childProcess->kill();
|
childProcess->kill();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue