Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add the missing atexit call
authorTakshipp <toufik.boubehziz@gmail.com>
Wed, 31 May 2017 16:09:01 +0000 (18:09 +0200)
committerTakshipp <toufik.boubehziz@gmail.com>
Wed, 31 May 2017 16:09:01 +0000 (18:09 +0200)
src/simdag/sd_global.cpp

index f44d4ad..036b62e 100644 (file)
@@ -161,9 +161,8 @@ void SD_init(int *argc, char **argv)
   surf_init(argc, argv);
 
   xbt_cfg_setdefault_string("host/model", "ptask_L07");
   surf_init(argc, argv);
 
   xbt_cfg_setdefault_string("host/model", "ptask_L07");
-
+    atexit(SD_exit);
   if (_sg_cfg_exit_asap) {
   if (_sg_cfg_exit_asap) {
-    SD_exit();
     exit(0);
   }
 }
     exit(0);
   }
 }