X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fruntime_swig%2FThreadLauncher.cxx;fp=src%2Fruntime_swig%2FThreadLauncher.cxx;h=5e3de2bfe2fd6a7a00b09eea462de4dea1a2413d;hb=4c9780471496140a71d2faf4e57202671bc286c4;hp=ff5b83c2ecb375fdb25d273dc2ef6a605eb5df63;hpb=2dded522191b09132bb5708d7f30f709cc4e4f35;p=modules%2Fyacs.git diff --git a/src/runtime_swig/ThreadLauncher.cxx b/src/runtime_swig/ThreadLauncher.cxx index ff5b83c2e..5e3de2bfe 100644 --- a/src/runtime_swig/ThreadLauncher.cxx +++ b/src/runtime_swig/ThreadLauncher.cxx @@ -42,13 +42,18 @@ void ThreadDumpState::run() { #ifdef WIN32 Sleep(_nb_seconds); + std::string cmd = "COPY /b " + _lock_file + " +,,"; #else sleep(_nb_seconds); -#endif std::string cmd = "touch " + _lock_file; +#endif system(cmd.c_str()); schemaSaveStateUnsafe(_proc,_dump_file); +#ifdef WIN32 + cmd = "DEL /Q /F " + _lock_file; +#else cmd = "rm -f " + _lock_file; +#endif system(cmd.c_str()); state = _proc->getEffectiveState(); }