Browse Source

fxt: fix close duplicate

fxt_close closes the underlying fd as well (since fclose does...)
Samuel Thibault 4 years ago
parent
commit
ab06296089
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/debug/traces/starpu_fxt.c

+ 2 - 1
src/debug/traces/starpu_fxt.c

@@ -4955,12 +4955,13 @@ void starpu_fxt_write_data_trace_in_dir(char *filename_in, char *dir)
 
 #ifdef HAVE_FXT_CLOSE
 	fxt_close(fut);
-#endif
+#else
 	if (close(fd_in))
 	{
 	        perror("close failed :");
 	        exit(-1);
 	}
+#endif
 
 	if(fclose(codelet_list))
 	{