!602 fix: ReadRawTrace正常的逻辑场景添加fsync

Merge pull request !602 from jiangwei/master
This commit is contained in:
openharmony_ci 2024-10-16 02:18:15 +00:00 committed by Gitee
commit d024489ce9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -989,6 +989,7 @@ bool ReadRawTrace(std::string &outputFileName)
WriteCmdlines(outFd, outPath) && WriteTgids(outFd, outPath) &&
WriteHeaderPage(outFd, outPath) && WritePrintkFormats(outFd, outPath) &&
WriteKallsyms(outFd)) {
fsync(outFd);
close(outFd);
return true;
}