Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Shutdown sensors when dying because there were not enough of them
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Nov 2006 18:28:39 +0000 (18:28 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Nov 2006 18:28:39 +0000 (18:28 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2927 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/amok/bandwidth/bandwidth.c

index 6d1eda4..c0f1eae 100644 (file)
@@ -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);