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 clean-atexit test
[simgrid.git]
/
src
/
simdag
/
sd_global.cpp
diff --git
a/src/simdag/sd_global.cpp
b/src/simdag/sd_global.cpp
index
f44d4ad
..
fe90776
100644
(file)
--- a/
src/simdag/sd_global.cpp
+++ b/
src/simdag/sd_global.cpp
@@
-161,9
+161,9
@@
void SD_init(int *argc, char **argv)
surf_init(argc, argv);
xbt_cfg_setdefault_string("host/model", "ptask_L07");
-
+ if(xbt_cfg_get_boolean("clean-atexit"))
+ atexit(SD_exit);
if (_sg_cfg_exit_asap) {
- SD_exit();
exit(0);
}
}