Date: Wednesday, January 10, 2007 @ 18:06:45
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: ControllerWatcher.cpp (1.11 -> 1.12)

Fixed memory corruption when using stillborn_hack: thread is now
sleeping instead of double-stop() (second stop() was AFTER delete!)


-----------------------+
 ControllerWatcher.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: carob/src/ControllerWatcher.cpp
diff -u carob/src/ControllerWatcher.cpp:1.11 
carob/src/ControllerWatcher.cpp:1.12
--- carob/src/ControllerWatcher.cpp:1.11        Wed Jan 10 10:57:41 2007
+++ carob/src/ControllerWatcher.cpp     Wed Jan 10 18:06:45 2007
@@ -174,9 +174,11 @@
   // secret code to disable the ping
   if (controller_timeout == stillborn_hack)
   {
-    this->stop();
     std::wostringstream ostr; ostr << L"ControllerWatcher " << this << L" 
disabled by " << stillborn_hack;
     logWarn(fctName, ostr.str());
+
+    while (!is_stopped)
+      sleep(2);
   }
 
   while (!is_stopped)

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to