From: velho Date: Mon, 12 Apr 2010 14:34:10 +0000 (+0000) Subject: Corrected GTNetS to cople with the tracing facillity. X-Git-Tag: SVN~209 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c621bfb242267dafb61dbf207129ab0eae270aab Corrected GTNetS to cople with the tracing facillity. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7532 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/gtnets/gtnets.c b/examples/msg/gtnets/gtnets.c index 8e6c295eab..854cba0c24 100644 --- a/examples/msg/gtnets/gtnets.c +++ b/examples/msg/gtnets/gtnets.c @@ -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 */