diff --git a/Control/AthenaMPTools/src/AthenaMPToolBase.cxx b/Control/AthenaMPTools/src/AthenaMPToolBase.cxx
index b7fd36a51a1f0d341f304a7d9250136109f516a8..3c4bb45031112fce076ca57bf4af27c053c62617 100644
--- a/Control/AthenaMPTools/src/AthenaMPToolBase.cxx
+++ b/Control/AthenaMPTools/src/AthenaMPToolBase.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
 */
 
 #include "AthenaMPToolBase.h"
@@ -209,7 +209,7 @@ void AthenaMPToolBase::setRandString(const std::string& randStr)
 
 void AthenaMPToolBase::killChildren()
 {
-  for(auto child : m_processGroup->getChildren()) {
+  for(const AthenaInterprocess::Process& child : m_processGroup->getChildren()) {
     kill(child.getProcessID(),SIGKILL);
   }
 }