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
Initializing logs once and only once.
[simgrid.git]
/
src
/
xbt
/
module.c
diff --git
a/src/xbt/module.c
b/src/xbt/module.c
index
d435369
..
0c90ca5
100644
(file)
--- a/
src/xbt/module.c
+++ b/
src/xbt/module.c
@@
-35,7
+35,10
@@
struct xbt_module_ {
void
xbt_init(int *argc, char **argv) {
- xbt_init_defaultlog(argc, argv, NULL);
+ static int first_run = 1;
+ if(first_run)
+ xbt_init_defaultlog(argc, argv, NULL);
+ first_run = 0;
}
/**