fix kill/terminate order

This commit is contained in:
Seth Alves 2015-05-01 16:56:39 -07:00
parent 23c44500d8
commit 9f1cb2a4e5

View file

@ -98,7 +98,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();
childProcess->kill(); childProcess->terminate();
} }
// try to give all the children time to shutdown // try to give all the children time to shutdown
@ -108,7 +108,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();
childProcess->terminate(); childProcess->kill();
} }
waitOnChildren(WAIT_FOR_CHILD_MSECS); waitOnChildren(WAIT_FOR_CHILD_MSECS);