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
Shutdown sensors when dying because there were not enough of them
[simgrid.git]
/
examples
/
amok
/
bandwidth
/
bandwidth.c
diff --git
a/examples/amok/bandwidth/bandwidth.c
b/examples/amok/bandwidth/bandwidth.c
index
6d1eda4
..
c0f1eae
100644
(file)
--- a/
examples/amok/bandwidth/bandwidth.c
+++ b/
examples/amok/bandwidth/bandwidth.c
@@
-80,6
+80,7
@@
int maestro(int argc,char *argv[]) {
char *msg;
asprintf(&msg,"Not enough peers arrived. Expected 2 got %ld",
xbt_dynar_length(group));
+ amok_pm_group_shutdown("bandwidth");
xbt_die(msg);
}
h1 = *(xbt_peer_t*) xbt_dynar_get_ptr(group, 0);