Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
revalidate tesh file with dump output
[simgrid.git] / examples / msg / io / file.c
index 023c1db..d36365f 100644 (file)
@@ -36,9 +36,10 @@ int host(int argc, char *argv[])
   char* mount = xbt_strdup("/home");
   size_t read,write;
 
-  if(!strcmp(MSG_process_get_name(MSG_process_self()),"0"))
+  if(!strcmp(MSG_process_get_name(MSG_process_self()),"0")){
     file = MSG_file_open(mount,FILENAME1);
-  else if(!strcmp(MSG_process_get_name(MSG_process_self()),"1"))
+    MSG_file_dump(file);
+  } else if(!strcmp(MSG_process_get_name(MSG_process_self()),"1"))
     file = MSG_file_open(mount,FILENAME2);
   else if(!strcmp(MSG_process_get_name(MSG_process_self()),"2"))
     file = MSG_file_open(mount,FILENAME3);