Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce code duplication.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 4 Apr 2018 16:34:11 +0000 (18:34 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 5 Apr 2018 07:27:33 +0000 (09:27 +0200)
src/simix/smx_global.cpp

index 0ac25c0..e7e7070 100644 (file)
@@ -529,16 +529,12 @@ void SIMIX_run()
     if (simix_global->process_list.size() <= simix_global->daemons.size()) {
       XBT_CRITICAL("Oops! Daemon actors cannot do any blocking activity (communications, synchronization, etc) "
                    "once the simulation is over. Please fix your on_exit() functions.");
-      SIMIX_display_process_status();
-      simgrid::s4u::onDeadlock();
-      xbt_abort();
-
     } else {
       XBT_CRITICAL("Oops! Deadlock or code not perfectly clean.");
-      SIMIX_display_process_status();
-      simgrid::s4u::onDeadlock();
-      xbt_abort();
     }
+    SIMIX_display_process_status();
+    simgrid::s4u::onDeadlock();
+    xbt_abort();
   }
   simgrid::s4u::onSimulationEnd();
 }