From: mquinson Date: Tue, 14 Nov 2006 18:28:39 +0000 (+0000) Subject: Shutdown sensors when dying because there were not enough of them X-Git-Tag: v3.3~2432 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3232b275b9b38548bee1c3b6de1fbaec68f19584?hp=0c259b6fb45cece5af1c16f45893a13a4087fd49 Shutdown sensors when dying because there were not enough of them git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2927 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/amok/bandwidth/bandwidth.c b/examples/amok/bandwidth/bandwidth.c index 6d1eda4e45..c0f1eaedac 100644 --- 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);