Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix the finalization process of ruby simulations. THE REST WORKS, yuhu
[simgrid.git] / src / bindings / ruby / simgrid.rb
index 9bd954b..67c7e1c 100644 (file)
@@ -117,8 +117,9 @@ class MSG::Process < Thread
     @schedBegin.acquire()
     MSG::debug("Let's execute the main() of the Ruby process")
     main(@pargs)
     @schedBegin.acquire()
     MSG::debug("Let's execute the main() of the Ruby process")
     main(@pargs)
-#     processExit(self) # Exit the Native Process
     @schedEnd.release()
     @schedEnd.release()
+    MSG::debug("Released my schedEnd, bailing out")
+    processExit(self) # Exit the Native Process
   end
     
 
   end