From 1796f6bc4b95bf244a7cc599c681d2de9ab5d7c7 Mon Sep 17 00:00:00 2001 From: Martin Strunz Date: Fri, 12 Nov 2021 14:24:36 +0100 Subject: [PATCH] Update PipeProcess.cpp --- .../modules/SofaHelper/src/sofa/helper/system/PipeProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SofaKernel/modules/SofaHelper/src/sofa/helper/system/PipeProcess.cpp b/SofaKernel/modules/SofaHelper/src/sofa/helper/system/PipeProcess.cpp index d3d04c22c2a..6d0dc0afebf 100644 --- a/SofaKernel/modules/SofaHelper/src/sofa/helper/system/PipeProcess.cpp +++ b/SofaKernel/modules/SofaHelper/src/sofa/helper/system/PipeProcess.cpp @@ -192,7 +192,7 @@ bool PipeProcess::executeProcess(const std::string &command, const std::vector< unsigned long exit = 0; for (int i=0; i<2; ++i) nfill[i] = 0; - for(int i=0;; ++i) + while(true) { GetExitCodeProcess(piProcInfo.hProcess,&exit); //while the process is running if (exit != STILL_ACTIVE)