소스 검색

Flush and close output file after profiling run.

Thanks to Sergey Ostanevich.
Mike Pall 4 년 전
부모
커밋
95140c5001
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/jit/p.lua

+ 1 - 0
src/jit/p.lua

@@ -238,6 +238,7 @@ local function prof_finish()
     prof_count1 = nil
     prof_count2 = nil
     prof_ud = nil
+    if out ~= stdout then out:close() end
   end
 end