浏览代码

fxt: fix close duplicate

fxt_close closes the underlying fd as well (since fclose does...)
Samuel Thibault 4 年之前
父节点
当前提交
ab06296089
共有 1 个文件被更改,包括 2 次插入1 次删除
  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))
 	{