!482 确保BBOX抓取的故障日志落盘

Merge pull request !482 from pcwlno1/cherry-pick-1627723436
This commit is contained in:
openharmony_ci 2021-08-02 01:06:03 +00:00 committed by Gitee
commit 5f78ff093f
1 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isA
totalToWrite -= writeThisTime;
totalWrite += writeThisTime;
}
(void)fsync(fd);
(void)close(fd);
return (totalWrite == (int)bufSize) ? 0 : -1;
@ -124,4 +125,4 @@ bool IsLogPartReady(void)
{
return TRUE;
}
#endif
#endif