Explorar o código

fxt: fix close duplicate

fxt_close closes the underlying fd as well (since fclose does...)
Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
ab06296089
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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))
 	{