Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Filename is not valid anymore after MSG_file_close.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Sat, 8 Mar 2014 22:09:41 +0000 (23:09 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Sat, 8 Mar 2014 22:10:17 +0000 (23:10 +0100)
examples/msg/io/file.c

index fc62fac..c86a7d0 100644 (file)
@@ -62,8 +62,8 @@ int host(int argc, char *argv[])
   XBT_INFO("\tHave read    %llu on %s (of size %llu)",read,filename,
       MSG_file_get_size(file));
 
-  MSG_file_close(file);
   XBT_INFO("\tClose file '%s'",filename);
+  MSG_file_close(file);
 
   free(mount);
   return 0;