From: Renaud Barate Date: Tue, 7 Apr 2015 14:34:21 +0000 (+0200) Subject: Fix race condition that could cause SIGSEGV with "Stop on error" mode X-Git-Tag: V7_6_0b1~3^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96ed72f72640a9d725d10cb1e37b11accb961077;p=modules%2Fyacs.git Fix race condition that could cause SIGSEGV with "Stop on error" mode --- diff --git a/src/engine/Executor.cxx b/src/engine/Executor.cxx index a36b45531..6496b8141 100644 --- a/src/engine/Executor.cxx +++ b/src/engine/Executor.cxx @@ -364,7 +364,10 @@ void Executor::RunB(Scheduler *graph,int debug, bool fromScratch) { saveState(_dumpErrorFile); } - _trace.close(); + { + YACS::BASES::AutoLocker alck(&_mutexForTrace); + _trace.close(); + } DEBTRACE("End of RunB thread"); }