]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Removing 30s limit on QProcess yan/parallel_mesh2
authorYoann Audouin <yoann.audouin@edf.fr>
Wed, 12 Oct 2022 08:28:39 +0000 (10:28 +0200)
committerYoann Audouin <yoann.audouin@edf.fr>
Wed, 12 Oct 2022 08:28:39 +0000 (10:28 +0200)
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx

index f66cf7561a27553150e8614a5a2884738b18529a..16311c7212513e35a237a9d8979f350afeefab3b 100644 (file)
@@ -300,7 +300,9 @@ bool NETGENPlugin_NETGEN_3D_Remote::Compute(SMESH_Mesh&         aMesh,
   myProcess.setStandardOutputFile(out_file);
 
   myProcess.start(program, arguments);
-  myProcess.waitForFinished();
+  // Waiting for process to finish (argument -1 make it wait until the end of
+  // the process otherwise it just waits 30 seconds)
+  myProcess.waitForFinished(-1);
   int ret = myProcess.exitStatus();
 
   if(ret != 0){