Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stop using the logs after they are shutdown
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 6 Jun 2007 14:42:56 +0000 (14:42 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 6 Jun 2007 14:42:56 +0000 (14:42 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3570 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/ping/ping_client.c
examples/gras/ping/ping_server.c

index d213bdb..c496424 100644 (file)
@@ -78,7 +78,7 @@ int client(int argc,char *argv[]) {
 
   /* 10. Free the allocated resources, and shut GRAS down */
   gras_socket_close(toserver);
-  gras_exit();
   INFO0("Done.");
+  gras_exit();
   return 0;
 } /* end_of_client */
index 29e853d..1fd2a7a 100644 (file)
@@ -99,8 +99,8 @@ int server (int argc,char *argv[]) {
   /* 8. Free the allocated resources, and shut GRAS down */
   gras_socket_close(globals->sock);
   free(globals);
+  INFO0("Done.");
   gras_exit();
    
-  INFO0("Done.");
   return 0;
 } /* end_of_server */