Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Corrected GTNetS to cople with the tracing facillity.
[simgrid.git] / examples / msg / gtnets / gtnets.c
index 8e6c295..854cba0 100644 (file)
@@ -126,17 +126,9 @@ int slave(int argc, char *argv[])
            slavenames[id], remaining);
       }
     }
-    //exit(0);
-  }
-
-  for (id = 0; id < NTASKS; id++) {
-    if (gl_task_array[id] == task) {
-      MSG_task_destroy(task);
-      gl_task_array[id] = NULL;
-      return 0;
-    }
-  }
+  }  
 
+  MSG_task_destroy(task);
   return 0;
 }                               /* end_of_slave */