]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: reset temporary file name attribute
authorcaremoli <caremoli>
Fri, 21 Jan 2011 17:15:59 +0000 (17:15 +0000)
committercaremoli <caremoli>
Fri, 21 Jan 2011 17:15:59 +0000 (17:15 +0000)
src/Container/SALOME_ContainerManager.cxx

index a22a39c2fc7a866980f68da5e639bb35c9fbe0e3..6ddaaa0a13c562e48a95713a27a74480e499ba17 100644 (file)
@@ -440,11 +440,13 @@ SALOME_ContainerManager::GiveContainer(const Engines::ContainerParameters& param
   if (status == -1){
     MESSAGE("SALOME_ContainerManager::StartContainer rsh failed (system command status -1)");
     RmTmpFile(_TmpFileName); // command file can be removed here
+    _TmpFileName="";
     return Engines::Container::_nil();
   }
   else if (status == 217){
     MESSAGE("SALOME_ContainerManager::StartContainer rsh failed (system command status 217)");
     RmTmpFile(_TmpFileName); // command file can be removed here
+    _TmpFileName="";
     return Engines::Container::_nil();
   }
   else
@@ -475,6 +477,7 @@ SALOME_ContainerManager::GiveContainer(const Engines::ContainerParameters& param
       logFilename=user+logFilename;
       ret->logfilename(logFilename.c_str());
       RmTmpFile(_TmpFileName); // command file can be removed here
+      _TmpFileName="";
     }
   }
   return ret;