From 464d5a64a53ba97aaf885e4e2efb2315eeaef632 Mon Sep 17 00:00:00 2001 From: Takshipp Date: Wed, 31 May 2017 18:09:01 +0200 Subject: [PATCH] add the missing atexit call --- src/simdag/sd_global.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/simdag/sd_global.cpp b/src/simdag/sd_global.cpp index f44d4ade92..036b62ead1 100644 --- a/src/simdag/sd_global.cpp +++ b/src/simdag/sd_global.cpp @@ -161,9 +161,8 @@ void SD_init(int *argc, char **argv) surf_init(argc, argv); xbt_cfg_setdefault_string("host/model", "ptask_L07"); - + atexit(SD_exit); if (_sg_cfg_exit_asap) { - SD_exit(); exit(0); } } -- 2.20.1