A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add the missing atexit call
[simgrid.git]
/
src
/
simdag
/
sd_global.cpp
diff --git
a/src/simdag/sd_global.cpp
b/src/simdag/sd_global.cpp
index
f44d4ad
..
036b62e
100644
(file)
--- 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");
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);
}
}